diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index cbf8245a..6a653425 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -158,7 +158,7 @@ pub fn run() { log_err!(hotkey::Hotkey::global().register("Control+Q", "quit")); }; } - tauri::WindowEvent::Focused(false) => { + tauri::WindowEvent::Destroyed => { #[cfg(target_os = "macos")] { log_err!(hotkey::Hotkey::global().unregister("CMD+Q"));