summaryrefslogtreecommitdiffstats
path: root/src/electron/Settings.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/electron/Settings.ts')
-rw-r--r--src/electron/Settings.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/electron/Settings.ts b/src/electron/Settings.ts
index 3e9c6ed99..7bb12338e 100644
--- a/src/electron/Settings.ts
+++ b/src/electron/Settings.ts
@@ -18,10 +18,10 @@ export default class Settings {
18 this.store = defaultState; 18 this.store = defaultState;
19 this.defaultState = defaultState; 19 this.defaultState = defaultState;
20 20
21 if (!pathExistsSync(this.settingsFile)) { 21 if (pathExistsSync(this.settingsFile)) {
22 this._writeFile();
23 } else {
24 this._hydrate(); 22 this._hydrate();
23 } else {
24 this._writeFile();
25 } 25 }
26 } 26 }
27 27