diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 0272f39c3..c2b43bd5c 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -7,7 +7,7 @@ import { | |||
7 | systemPreferences, | 7 | systemPreferences, |
8 | getCurrentWindow, | 8 | getCurrentWindow, |
9 | } from '@electron/remote'; | 9 | } from '@electron/remote'; |
10 | import { autorun, observable } from 'mobx'; | 10 | import { autorun, makeObservable, observable } from 'mobx'; |
11 | import { defineMessages } from 'react-intl'; | 11 | import { defineMessages } from 'react-intl'; |
12 | import osName from 'os-name'; | 12 | import osName from 'os-name'; |
13 | import { | 13 | import { |
@@ -626,6 +626,8 @@ class FranzMenu { | |||
626 | this.stores = stores; | 626 | this.stores = stores; |
627 | this.actions = actions; | 627 | this.actions = actions; |
628 | 628 | ||
629 | makeObservable(this); | ||
630 | |||
629 | setTimeout(() => { | 631 | setTimeout(() => { |
630 | autorun(this._build.bind(this)); | 632 | autorun(this._build.bind(this)); |
631 | }, 10); | 633 | }, 10); |