diff options
Diffstat (limited to 'src/stores/UIStore.ts')
-rw-r--r-- | src/stores/UIStore.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stores/UIStore.ts b/src/stores/UIStore.ts index c43c6d8c7..e0589729f 100644 --- a/src/stores/UIStore.ts +++ b/src/stores/UIStore.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { action, observable, computed, reaction } from 'mobx'; | 1 | import { action, observable, computed, reaction, makeObservable } from 'mobx'; |
2 | import { nativeTheme } from '@electron/remote'; | 2 | import { nativeTheme } from '@electron/remote'; |
3 | 3 | ||
4 | import { Stores } from '../@types/stores.types'; | 4 | import { Stores } from '../@types/stores.types'; |
@@ -14,6 +14,9 @@ export default class UIStore extends TypedStore { | |||
14 | 14 | ||
15 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { | 15 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { |
16 | super(stores, api, actions); | 16 | super(stores, api, actions); |
17 | |||
18 | makeObservable(this); | ||
19 | |||
17 | // Register action handlers | 20 | // Register action handlers |
18 | this.actions.ui.openSettings.listen(this._openSettings.bind(this)); | 21 | this.actions.ui.openSettings.listen(this._openSettings.bind(this)); |
19 | this.actions.ui.closeSettings.listen(this._closeSettings.bind(this)); | 22 | this.actions.ui.closeSettings.listen(this._closeSettings.bind(this)); |