diff options
author | 2022-07-07 09:31:50 +0200 | |
---|---|---|
committer | 2022-07-07 09:31:50 +0200 | |
commit | 71c52373f81cace664047edd19d9d289f45a4dff (patch) | |
tree | 69b3f1d45a8b3f1ceab9497ea3c96e9dc18e3166 /src/lib/Menu.js | |
parent | 6.0.0-nightly.91 [skip ci] (diff) | |
download | ferdium-app-71c5237.tar.gz ferdium-app-71c5237.tar.zst ferdium-app-71c5237.zip |
chore: Mobx & React-Router upgrade (#406)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/lib/Menu.js')
-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); |