Skip to content

Commit fd8cb23

Browse files
committed
fix for first start not creating config
1 parent b19dcff commit fd8cb23

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "wh3mm",
33
"productName": "wh3mm",
4-
"version": "1.25.0",
4+
"version": "1.25.1",
55
"description": "WH3 Mod Manager",
66
"main": ".webpack/main",
77
"scripts": {

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,14 @@ const readConfig = async (mainWindow: BrowserWindow) => {
6868
try {
6969
const appState = await readAppConfig();
7070
if (!appData.hasReadConfig) {
71-
appData.hasReadConfig = true;
7271
setStartingAppState(appState);
7372
}
7473
mainWindow.webContents.send("fromAppConfig", appState);
7574
} catch (err) {
7675
mainWindow.webContents.send("failedReadingConfig");
7776
console.log(err);
77+
} finally {
78+
appData.hasReadConfig = true;
7879
}
7980
};
8081

0 commit comments

Comments
 (0)