fix: unregister global shortcuts

This commit is contained in:
kassadin 2025-02-16 02:23:20 +08:00 committed by 亢奋猫
parent 1473cb3123
commit 9e128d2524

View File

@ -79,11 +79,11 @@ export function registerShortcuts(window: BrowserWindow) {
const accelerator = formatShortcutKey(shortcut.shortcut) const accelerator = formatShortcutKey(shortcut.shortcut)
if (shortcut.key === 'show_app') { if (shortcut.key === 'show_app' && shortcut.enabled) {
showAppAccelerator = accelerator showAppAccelerator = accelerator
} }
if (shortcut.key === 'mini_window') { if (shortcut.key === 'mini_window' && shortcut.enabled) {
showMiniWindowAccelerator = accelerator showMiniWindowAccelerator = accelerator
} }