diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/SettingsStore.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 8a5ee7204..428b6342c 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -47,9 +47,11 @@ export default class SettingsStore extends Store { | |||
47 | 47 | ||
48 | reaction( | 48 | reaction( |
49 | () => this.all.app.autohideMenuBar, | 49 | () => this.all.app.autohideMenuBar, |
50 | () => remote.getCurrentWindow().setAutoHideMenuBar( | 50 | () => { |
51 | this.all.app.autohideMenuBar, | 51 | const currentWindow = remote.getCurrentWindow(); |
52 | ), | 52 | currentWindow.setMenuBarVisibility(!this.all.app.autohideMenuBar); |
53 | currentWindow.setAutoHideMenuBar(this.all.app.autohideMenuBar); | ||
54 | }, | ||
53 | ); | 55 | ); |
54 | 56 | ||
55 | reaction( | 57 | reaction( |