Skip to content

Commit

Permalink
debug: add println statement when exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
YassinEldeeb committed Apr 3, 2022
1 parent fbf34bf commit c50a5dd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions schedular/src/system_tray.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -9,10 +8,7 @@ pub fn bg_system_tray(exit: Arc<Mutex<bool>>) {
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::{
Expand Down Expand Up @@ -60,6 +56,7 @@ pub fn bg_system_tray(exit: Arc<Mutex<bool>>) {
let exit_lock = exit.try_lock();
if let Ok(value) = exit_lock {
if *value == true {
println!("Exiting...");
*control_flow = ControlFlow::Exit;
}
}
Expand Down

1 comment on commit c50a5dd

@vercel
Copy link

@vercel vercel bot commented on c50a5dd Apr 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.