chore: update

This commit is contained in:
huzibaca 2024-10-23 09:26:14 +08:00
parent f9009de894
commit 2ab75db9c9
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -159,6 +159,16 @@ pub fn run() {
log_err!(hotkey::Hotkey::global().register("Control+Q", "quit"));
};
}
tauri::WindowEvent::Focused(false) => {
#[cfg(target_os = "macos")]
{
log_err!(hotkey::Hotkey::global().unregister("CMD+Q"));
}
#[cfg(not(target_os = "macos"))]
{
log_err!(hotkey::Hotkey::global().unregister("Control+Q"));
};
}
tauri::WindowEvent::Destroyed => {
#[cfg(target_os = "macos")]
{