This commit is contained in:
huzibaca
2024-11-16 06:08:49 +08:00
parent 3f79e42628
commit 1e3c995e6a
2 changed files with 57 additions and 19 deletions
+1
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)?;
}