[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:
Benjamin
2024-02-03 18:37:53 -06:00
committed by GitHub
parent 24bf7ae31f
commit 1fb7290603
+3 -3
View File
@@ -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);
}
@@ -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) {
enableMediaKeys(mainWindow);