There was an error while loading. Please reload this page.
1 parent 860e93c commit 36a58c5Copy full SHA for 36a58c5
1 file changed
apps/plumeimpactor/src/tray.rs
@@ -32,6 +32,9 @@ pub fn setup_tray(
32
MenuEvent::set_event_handler(Some({
33
let ctx = ctx.clone();
34
move |event: MenuEvent| {
35
+ if event.id.as_ref() == "quit" {
36
+ std::process::exit(0);
37
+ }
38
if event.id.as_ref() == "open" {
39
restore_window_from_tray(win32_hwnd.load(Ordering::Acquire));
40
}
0 commit comments