[bugfix] Fix global hotkeys not working on startup (#488)
* Simple one line fix for global hotkeys * Clean up codebase via default values
This commit is contained in:
parent
24bf7ae31f
commit
1fb7290603
1 changed files with 3 additions and 3 deletions
|
@ -317,9 +317,9 @@ const createWindow = async () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const globalMediaKeysEnabled = store.get('global_media_hotkeys') as boolean;
|
const globalMediaKeysEnabled = store.get('global_media_hotkeys', true) as boolean;
|
||||||
|
|
||||||
if (globalMediaKeysEnabled !== false) {
|
if (globalMediaKeysEnabled) {
|
||||||
enableMediaKeys(mainWindow);
|
enableMediaKeys(mainWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -633,7 +633,7 @@ ipcMain.on(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const globalMediaKeysEnabled = store.get('global_media_hotkeys') as boolean;
|
const globalMediaKeysEnabled = store.get('global_media_hotkeys', true) as boolean;
|
||||||
|
|
||||||
if (globalMediaKeysEnabled) {
|
if (globalMediaKeysEnabled) {
|
||||||
enableMediaKeys(mainWindow);
|
enableMediaKeys(mainWindow);
|
||||||
|
|
Reference in a new issue