fix: bugs

This commit is contained in:
qier222 2021-06-09 20:53:33 +08:00
parent e54c606c6d
commit f3076f21b2
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
13 changed files with 32 additions and 36 deletions

View file

@ -445,7 +445,8 @@
:class="{
active:
shortcutInput.id === shortcut.id &&
shortcutInput.type === 'globalShortcut',
shortcutInput.type === 'globalShortcut' &&
enableGlobalShortcut,
}"
@click.stop="
readyToRecordShortcut(shortcut.id, 'globalShortcut')
@ -927,6 +928,9 @@ export default {
return shortcut.replace('CommandOrControl', 'Ctrl');
},
readyToRecordShortcut(id, type) {
if (type === 'globalShortcut' && this.enableGlobalShortcut === false) {
return;
}
this.shortcutInput = { id, type, recording: true };
this.recordedShortcut = [];
ipcRenderer.send('switchGlobalShortcutStatusTemporary', 'disable');