Skip to content

Commit 36a58c5

Browse files
committed
fix: windows again
1 parent 860e93c commit 36a58c5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/plumeimpactor/src/tray.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ pub fn setup_tray(
3232
MenuEvent::set_event_handler(Some({
3333
let ctx = ctx.clone();
3434
move |event: MenuEvent| {
35+
if event.id.as_ref() == "quit" {
36+
std::process::exit(0);
37+
}
3538
if event.id.as_ref() == "open" {
3639
restore_window_from_tray(win32_hwnd.load(Ordering::Acquire));
3740
}

0 commit comments

Comments
 (0)