fix: function parameter call error

This commit is contained in:
huzibaca 2024-09-20 08:27:06 +08:00
parent c17ea74856
commit 414f9e9e96

View File

@ -158,7 +158,7 @@ pub fn run() {
#[cfg(not(target_os = "macos"))] #[cfg(not(target_os = "macos"))]
{ {
log_err!(hotkey::Hotkey::global().register()("Control+Q", "quit")); log_err!(hotkey::Hotkey::global().register("Control+Q", "quit"));
}; };
} }
tauri::WindowEvent::Focused(false) => { tauri::WindowEvent::Focused(false) => {
@ -169,7 +169,7 @@ pub fn run() {
#[cfg(not(target_os = "macos"))] #[cfg(not(target_os = "macos"))]
{ {
log_err!(hotkey::Hotkey::global().unregister()("Control+Q")); log_err!(hotkey::Hotkey::global().unregister("Control+Q"));
}; };
} }
_ => {} _ => {}