fix: unregister global shortcuts

This commit is contained in:
kassadin 2025-02-16 02:23:20 +08:00 committed by 亢奋猫
parent f4b4ef065b
commit 97ea84a0a6

View File

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