chore: update

This commit is contained in:
huzibaca 2024-10-23 09:26:14 +08:00
parent 3795b537f6
commit d44f3c22c7

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")]
{