aboutsummaryrefslogtreecommitdiffstats
path: root/src/electron
diff options
context:
space:
mode:
authorLibravatar Ricardo Cino <ricardo@cino.io>2022-07-07 09:31:50 +0200
committerLibravatar GitHub <noreply@github.com>2022-07-07 09:31:50 +0200
commit71c52373f81cace664047edd19d9d289f45a4dff (patch)
tree69b3f1d45a8b3f1ceab9497ea3c96e9dc18e3166 /src/electron
parent6.0.0-nightly.91 [skip ci] (diff)
downloadferdium-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.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;