mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:53:44 +08:00
fix: mac commad+q global hijack is not released
This commit is contained in:
parent
aa31fb7470
commit
6f477b7147
@ -158,7 +158,7 @@ pub fn run() {
|
|||||||
log_err!(hotkey::Hotkey::global().register("Control+Q", "quit"));
|
log_err!(hotkey::Hotkey::global().register("Control+Q", "quit"));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
tauri::WindowEvent::Focused(false) => {
|
tauri::WindowEvent::Destroyed => {
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
{
|
{
|
||||||
log_err!(hotkey::Hotkey::global().unregister("CMD+Q"));
|
log_err!(hotkey::Hotkey::global().unregister("CMD+Q"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user