diff options
author | Ricardo Cino <ricardo@cino.io> | 2022-07-07 09:31:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 09:31:50 +0200 |
commit | 71c52373f81cace664047edd19d9d289f45a4dff (patch) | |
tree | 69b3f1d45a8b3f1ceab9497ea3c96e9dc18e3166 /src/electron | |
parent | 6.0.0-nightly.91 [skip ci] (diff) | |
download | ferdium-app-71c52373f81cace664047edd19d9d289f45a4dff.tar.gz ferdium-app-71c52373f81cace664047edd19d9d289f45a4dff.tar.zst ferdium-app-71c52373f81cace664047edd19d9d289f45a4dff.zip |
chore: Mobx & React-Router upgrade (#406)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/electron')
-rw-r--r-- | src/electron/Settings.ts | 4 |
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 @@ | |||
1 | import { observable, toJS } from 'mobx'; | 1 | import { makeObservable, observable, toJS } from 'mobx'; |
2 | import { pathExistsSync, outputJsonSync, readJsonSync } from 'fs-extra'; | 2 | import { pathExistsSync, outputJsonSync, readJsonSync } from 'fs-extra'; |
3 | import { userDataPath } from '../environment-remote'; | 3 | import { 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; |