From ac3ccf47a3850b7fe8b320731e61b8f0b1d81042 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 24 Oct 2025 15:40:58 +0100 Subject: [PATCH] Wait for Electron to be ready before we fire syntax error dialog (#2659) --- src/electron-main.ts | 1 + 1 file changed, 1 insertion(+) 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`,