From c50a5dd6938d0942c93934de27c2772031e4fae3 Mon Sep 17 00:00:00 2001 From: YassinEldeeb Date: Sun, 3 Apr 2022 16:05:24 +0200 Subject: [PATCH] debug: add println statement when exiting --- schedular/src/system_tray.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/schedular/src/system_tray.rs b/schedular/src/system_tray.rs index de39109..d73d40f 100644 --- a/schedular/src/system_tray.rs +++ b/schedular/src/system_tray.rs @@ -1,5 +1,4 @@ use std::sync::{Arc, Mutex}; -use std::thread::JoinHandle; // System tray is supported and availabled only if `tray` feature is enabled. // Platform: Windows, Linux and macOS. @@ -9,10 +8,7 @@ pub fn bg_system_tray(exit: Arc>) { use deadliner_gui::{get_current_file_ext, new_path}; #[cfg(target_os = "linux")] use std::path::Path; - use std::{ - process::{Child, Command}, - thread::JoinHandle, - }; + use std::process::{Child, Command}; #[cfg(target_os = "macos")] use tao::platform::macos::{CustomMenuItemExtMacOS, NativeImage, SystemTrayBuilderExtMacOS}; use tao::{ @@ -60,6 +56,7 @@ pub fn bg_system_tray(exit: Arc>) { let exit_lock = exit.try_lock(); if let Ok(value) = exit_lock { if *value == true { + println!("Exiting..."); *control_flow = ControlFlow::Exit; } }