fix: ensure app quit notification is sent before quitting

This commit is contained in:
Tunglies
2025-08-08 14:57:47 +08:00
parent 2af8c32497
commit 6069b654d1

View File

@@ -163,8 +163,8 @@ impl Hotkey {
notify_event(app_handle, NotificationEvent::LightweightModeEntered);
}
HotkeyFunction::Quit => {
feat::quit();
notify_event(app_handle, NotificationEvent::AppQuit);
feat::quit();
}
#[cfg(target_os = "macos")]
HotkeyFunction::Hide => {