fix config check

This commit is contained in:
smartfrigde 2024-01-28 14:59:00 +01:00
parent 83719af693
commit 037a26ef34
3 changed files with 61 additions and 43 deletions

View file

@ -28,6 +28,7 @@ import {createKeybindWindow} from "./keybindMaker/main";
export let iconPath: string;
export let settings: any;
export let customTitlebar: boolean;
checkIfConfigIsBroken();
app.on("render-process-gone", (event, webContents, details) => {
if (details.reason == "crashed") {
app.relaunch();
@ -71,7 +72,6 @@ if (!app.requestSingleInstanceLock() && getConfigSync("multiInstance") == (false
}
// work around chrome 66 disabling autoplay by default
app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required");
checkIfConfigIsBroken();
// WinRetrieveSuggestionsOnlyOnDemand: Work around electron 13 bug w/ async spellchecking on Windows.
// HardwareMediaKeyHandling,MediaSessionService: Prevent Discord from registering as a media service.
app.commandLine.appendSwitch(