fix ios build of desktop
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -1,5 +1,6 @@
|
|||||||
use tao::window::Window;
|
use tao::window::Window;
|
||||||
|
|
||||||
|
#[allow(unused)]
|
||||||
pub fn build_menu(window: &Window, default_menu_bar: bool) {
|
pub fn build_menu(window: &Window, default_menu_bar: bool) {
|
||||||
if default_menu_bar {
|
if default_menu_bar {
|
||||||
#[cfg(not(any(target_os = "ios", target_os = "android")))]
|
#[cfg(not(any(target_os = "ios", target_os = "android")))]
|
||||||
|
|||||||
@@ -37,15 +37,15 @@ impl GlobalHotKeyManager {
|
|||||||
Ok(Self())
|
Ok(Self())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register(&mut self, accelerator: HotKey) -> Result<HotKey, HotkeyError> {
|
pub fn register(&self, accelerator: HotKey) -> Result<HotKey, HotkeyError> {
|
||||||
Ok(HotKey)
|
Ok(HotKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn unregister(&mut self, id: HotKey) -> Result<(), HotkeyError> {
|
pub fn unregister(&self, id: HotKey) -> Result<(), HotkeyError> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn unregister_all(&mut self, _: &[HotKey]) -> Result<(), HotkeyError> {
|
pub fn unregister_all(&self, _: &[HotKey]) -> Result<(), HotkeyError> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user