fix: function parameter call error

This commit is contained in:
huzibaca 2024-09-20 08:27:06 +08:00
parent eefeec7f0a
commit ab887c656a
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -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"));
};
}
_ => {}