This commit is contained in:
huzibaca
2024-11-16 05:59:01 +08:00
parent f13140e39e
commit 114d5ab541
2 changed files with 57 additions and 19 deletions

View File

@@ -49,6 +49,7 @@ impl Hotkey {
let app_handle = handle::Handle::global().app_handle().unwrap();
let manager = app_handle.global_shortcut();
dbg!(&hotkey);
if manager.is_registered(hotkey) {
manager.unregister(hotkey)?;
}