File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
use std:: sync:: { Arc , Mutex } ;
2
- use std:: thread:: JoinHandle ;
3
2
4
3
// System tray is supported and availabled only if `tray` feature is enabled.
5
4
// Platform: Windows, Linux and macOS.
@@ -9,10 +8,7 @@ pub fn bg_system_tray(exit: Arc<Mutex<bool>>) {
9
8
use deadliner_gui:: { get_current_file_ext, new_path} ;
10
9
#[ cfg( target_os = "linux" ) ]
11
10
use std:: path:: Path ;
12
- use std:: {
13
- process:: { Child , Command } ,
14
- thread:: JoinHandle ,
15
- } ;
11
+ use std:: process:: { Child , Command } ;
16
12
#[ cfg( target_os = "macos" ) ]
17
13
use tao:: platform:: macos:: { CustomMenuItemExtMacOS , NativeImage , SystemTrayBuilderExtMacOS } ;
18
14
use tao:: {
@@ -60,6 +56,7 @@ pub fn bg_system_tray(exit: Arc<Mutex<bool>>) {
60
56
let exit_lock = exit. try_lock ( ) ;
61
57
if let Ok ( value) = exit_lock {
62
58
if * value == true {
59
+ println ! ( "Exiting..." ) ;
63
60
* control_flow = ControlFlow :: Exit ;
64
61
}
65
62
}
You can’t perform that action at this time.
0 commit comments