diff --git a/src/electron-main.ts b/src/electron-main.ts index db0c8cceaf..8ff217fe69 100644 --- a/src/electron-main.ts +++ b/src/electron-main.ts @@ -211,6 +211,7 @@ function loadConfig(): Promise { global.vectorConfig = Object.assign(global.vectorConfig, localConfig); } catch (e) { if (e instanceof SyntaxError) { + await app.whenReady(); void dialog.showMessageBox({ type: "error", title: `Your ${global.vectorConfig.brand || "Element"} is misconfigured`,