This commit is contained in:
parent
6ad2296082
commit
93785e9221
1 changed files with 3 additions and 1 deletions
|
@ -793,7 +793,9 @@ app.whenReady().then(() => {
|
|||
event.sender.openDevTools({mode: "bottom"});
|
||||
break;
|
||||
case "unregisterGlobalShortcut":
|
||||
globalShortcut.unregister(hotKey2Electron(data.accelerator));
|
||||
if (data.accelerator) {
|
||||
globalShortcut.unregister(hotKey2Electron(data.accelerator));
|
||||
}
|
||||
break;
|
||||
case "show":
|
||||
if (!currentWindow) {
|
||||
|
|
Loading…
Add table
Reference in a new issue