mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 02:43:33 +00:00
[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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue