aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r--src/stores/SettingsStore.js8
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(