Skip to content

Commit

Permalink
fix: global shortcut on windows, close #13 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
orangelckc committed Mar 19, 2023
1 parent 8cc608c commit 43c01e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ mod tray;

fn main() {
tauri::Builder::default()
.setup(|app| {
.setup(|_app| {
#[cfg(target_os = "macos")]
app.set_activation_policy(tauri::ActivationPolicy::Accessory);
_app.set_activation_policy(tauri::ActivationPolicy::Accessory);
Ok(())
})
.system_tray(tray::main_menu())
Expand Down
1 change: 1 addition & 0 deletions src/stores/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const useSettingsStore = defineStore(
await unregisterAll()

register(shortcutKeys.value.join('+'), () => {
appWindow.show()
appWindow.setFocus()
})
}
Expand Down

0 comments on commit 43c01e8

Please sign in to comment.