diff options
Diffstat (limited to 'src/stores/ServicesStore.ts')
-rw-r--r-- | src/stores/ServicesStore.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts index 4c1b4116c..7812d5aee 100644 --- a/src/stores/ServicesStore.ts +++ b/src/stores/ServicesStore.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { shell } from 'electron'; | 1 | import { shell } from 'electron'; |
2 | import { action, reaction, computed, observable } from 'mobx'; | 2 | import { action, reaction, computed, observable, makeObservable } from 'mobx'; |
3 | import { debounce, remove } from 'lodash'; | 3 | import { debounce, remove } from 'lodash'; |
4 | import ms from 'ms'; | 4 | import ms from 'ms'; |
5 | import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; | 5 | import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; |
@@ -67,6 +67,8 @@ export default class ServicesStore extends TypedStore { | |||
67 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { | 67 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { |
68 | super(stores, api, actions); | 68 | super(stores, api, actions); |
69 | 69 | ||
70 | makeObservable(this); | ||
71 | |||
70 | // Register action handlers | 72 | // Register action handlers |
71 | this.actions.service.setActive.listen(this._setActive.bind(this)); | 73 | this.actions.service.setActive.listen(this._setActive.bind(this)); |
72 | this.actions.service.blurActive.listen(this._blurActive.bind(this)); | 74 | this.actions.service.blurActive.listen(this._blurActive.bind(this)); |