Skip to content

Commit c50a5dd

Browse files
committed
debug: add println statement when exiting
1 parent fbf34bf commit c50a5dd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

schedular/src/system_tray.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use std::sync::{Arc, Mutex};
2-
use std::thread::JoinHandle;
32

43
// System tray is supported and availabled only if `tray` feature is enabled.
54
// Platform: Windows, Linux and macOS.
@@ -9,10 +8,7 @@ pub fn bg_system_tray(exit: Arc<Mutex<bool>>) {
98
use deadliner_gui::{get_current_file_ext, new_path};
109
#[cfg(target_os = "linux")]
1110
use std::path::Path;
12-
use std::{
13-
process::{Child, Command},
14-
thread::JoinHandle,
15-
};
11+
use std::process::{Child, Command};
1612
#[cfg(target_os = "macos")]
1713
use tao::platform::macos::{CustomMenuItemExtMacOS, NativeImage, SystemTrayBuilderExtMacOS};
1814
use tao::{
@@ -60,6 +56,7 @@ pub fn bg_system_tray(exit: Arc<Mutex<bool>>) {
6056
let exit_lock = exit.try_lock();
6157
if let Ok(value) = exit_lock {
6258
if *value == true {
59+
println!("Exiting...");
6360
*control_flow = ControlFlow::Exit;
6461
}
6562
}

0 commit comments

Comments
 (0)