fix: unregister global shortcuts
This commit is contained in:
parent
1473cb3123
commit
9e128d2524
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user