FIx desktop for android

This commit is contained in:
Jonathan Kelley committed 2023-07-05 12:49:41 -07:00
1 parent 4343abf76d
commit 2ce8ded74d
6 files changed
+42 -6

No files matched your search

+9 -1
View File
@@ -113,7 +113,15 @@ impl ShortcutRegistry {
callbacks.remove(id.number);
if callbacks.is_empty() {
if let Some(_shortcut) = shortcuts.remove(&id.id) {
#[cfg(not(target_os = "ios"))]
#[cfg(any(
target_os = "windows",
target_os = "macos",
target_os = "linux",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
let _ = self.manager.borrow_mut().unregister(_shortcut.shortcut);
}
}