From ab887c656a31abc70cf4d9f219c021704e5a80bf Mon Sep 17 00:00:00 2001 From: huzibaca Date: Fri, 20 Sep 2024 08:27:06 +0800 Subject: [PATCH] fix: function parameter call error --- src-tauri/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 8ea864b..031a8a3 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -158,7 +158,7 @@ pub fn run() { #[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) => { @@ -169,7 +169,7 @@ pub fn run() { #[cfg(not(target_os = "macos"))] { - log_err!(hotkey::Hotkey::global().unregister()("Control+Q")); + log_err!(hotkey::Hotkey::global().unregister("Control+Q")); }; } _ => {}