mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
fix: ensure app quit notification is sent before quitting
This commit is contained in:
@@ -163,8 +163,8 @@ impl Hotkey {
|
|||||||
notify_event(app_handle, NotificationEvent::LightweightModeEntered);
|
notify_event(app_handle, NotificationEvent::LightweightModeEntered);
|
||||||
}
|
}
|
||||||
HotkeyFunction::Quit => {
|
HotkeyFunction::Quit => {
|
||||||
feat::quit();
|
|
||||||
notify_event(app_handle, NotificationEvent::AppQuit);
|
notify_event(app_handle, NotificationEvent::AppQuit);
|
||||||
|
feat::quit();
|
||||||
}
|
}
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
HotkeyFunction::Hide => {
|
HotkeyFunction::Hide => {
|
||||||
|
|||||||
Reference in New Issue
Block a user