mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
fix: bugs
This commit is contained in:
parent
e54c606c6d
commit
f3076f21b2
13 changed files with 32 additions and 36 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue