This commit is contained in:
Vanessa 2024-03-29 09:47:40 +08:00
parent 15f1510d6c
commit 13332781c9
7 changed files with 13 additions and 13 deletions

View file

@ -1041,7 +1041,7 @@ app.whenReady().then(() => {
return;
}
if (globalShortcut.isRegistered(shortcut)) {
globalShortcut.unregister(shortcut)
globalShortcut.unregister(shortcut);
}
if (index === 0) {
globalShortcut.register(shortcut, () => {