aboutsummaryrefslogtreecommitdiffstats
path: root/src/electron/Settings.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/electron/Settings.ts')
-rw-r--r--src/electron/Settings.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/electron/Settings.ts b/src/electron/Settings.ts
index d09ac7fb6..3e9c6ed99 100644
--- a/src/electron/Settings.ts
+++ b/src/electron/Settings.ts
@@ -1,4 +1,4 @@
1import { observable, toJS } from 'mobx'; 1import { makeObservable, observable, toJS } from 'mobx';
2import { pathExistsSync, outputJsonSync, readJsonSync } from 'fs-extra'; 2import { pathExistsSync, outputJsonSync, readJsonSync } from 'fs-extra';
3import { userDataPath } from '../environment-remote'; 3import { userDataPath } from '../environment-remote';
4 4
@@ -12,6 +12,8 @@ export default class Settings {
12 @observable store: object = {}; 12 @observable store: object = {};
13 13
14 constructor(type: string, defaultState = {}) { 14 constructor(type: string, defaultState = {}) {
15 makeObservable(this);
16
15 this.type = type; 17 this.type = type;
16 this.store = defaultState; 18 this.store = defaultState;
17 this.defaultState = defaultState; 19 this.defaultState = defaultState;