diff --git a/src/main/main.ts b/src/main/main.ts index 2ca95d900..189eaf9d0 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -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);