Wait for Electron to be ready before we fire syntax error dialog (#2659)

This commit is contained in:
Michael Telatynski
2025-10-24 15:40:58 +01:00
committed by GitHub
parent 3c3b1d9ad3
commit ac3ccf47a3

View File

@@ -211,6 +211,7 @@ function loadConfig(): Promise<void> {
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`,