aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/Menu.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Menu.js')
-rw-r--r--src/lib/Menu.js4
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';
10import { autorun, observable } from 'mobx'; 10import { autorun, makeObservable, observable } from 'mobx';
11import { defineMessages } from 'react-intl'; 11import { defineMessages } from 'react-intl';
12import osName from 'os-name'; 12import osName from 'os-name';
13import { 13import {
@@ -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);