Skip to content

Commit cf5a691

Browse files
committed
Revert "enterprise: Quit app after showing error for invalid global config."
This reverts commit 51ff949. It incorrectly uses a main-only API in app/common, which is shared between the main and renderer processes. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 51ff949 commit cf5a691

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

app/common/enterprise-util.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import {app} from "electron/main";
21
import fs from "node:fs";
32
import path from "node:path";
43
import process from "node:process";
@@ -48,11 +47,6 @@ function reloadDatabase(): void {
4847
);
4948
logger.log("Error while JSON parsing global_config.json: ");
5049
logger.log(error);
51-
// This function is called multiple times throughout the
52-
// codebase, making the above dialog.showErrorBox appear
53-
// multiple times and then leading to a non-working app.
54-
// It might be better to quit the app instead.
55-
app.quit();
5650
}
5751
} else {
5852
configFile = false;

0 commit comments

Comments
 (0)