diff options
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r-- | src/stores/SettingsStore.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index cd627c2b8..f551e1e49 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -40,7 +40,9 @@ export default class SettingsStore extends Store { | |||
40 | await this._migrate(); | 40 | await this._migrate(); |
41 | 41 | ||
42 | reaction( | 42 | reaction( |
43 | () => this.all.app.autohideMenuBar, | 43 | () => ( |
44 | this.all.app.autohideMenuBar | ||
45 | ), | ||
44 | () => { | 46 | () => { |
45 | const currentWindow = getCurrentWindow(); | 47 | const currentWindow = getCurrentWindow(); |
46 | currentWindow.setMenuBarVisibility(!this.all.app.autohideMenuBar); | 48 | currentWindow.setMenuBarVisibility(!this.all.app.autohideMenuBar); |
@@ -49,15 +51,15 @@ export default class SettingsStore extends Store { | |||
49 | ); | 51 | ); |
50 | 52 | ||
51 | reaction( | 53 | reaction( |
52 | () => this.all.app.server, | 54 | () => ( |
55 | this.all.app.server | ||
56 | ), | ||
53 | (server) => { | 57 | (server) => { |
54 | if (server === LOCAL_SERVER) { | 58 | if (server === LOCAL_SERVER) { |
55 | ipcRenderer.send('startLocalServer'); | 59 | ipcRenderer.send('startLocalServer'); |
56 | } | 60 | } |
57 | }, | 61 | }, |
58 | { | 62 | { fireImmediately: true }, |
59 | fireImmediately: true, | ||
60 | }, | ||
61 | ); | 63 | ); |
62 | 64 | ||
63 | // Inactivity lock timer | 65 | // Inactivity lock timer |