aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/ServicesStore.ts')
-rw-r--r--src/stores/ServicesStore.ts4
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 @@
1import { shell } from 'electron'; 1import { shell } from 'electron';
2import { action, reaction, computed, observable } from 'mobx'; 2import { action, reaction, computed, observable, makeObservable } from 'mobx';
3import { debounce, remove } from 'lodash'; 3import { debounce, remove } from 'lodash';
4import ms from 'ms'; 4import ms from 'ms';
5import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; 5import { 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));