diff options
author | 2020-02-11 12:00:22 +0100 | |
---|---|---|
committer | 2020-02-11 13:05:46 +0100 | |
commit | ba5448cf4f9f6000b6596fc0de67ca1c0fb1d7bf (patch) | |
tree | 7d17e4c942355ad06b65b71d759f74f0cc7428b0 /src | |
parent | Document misty usage to run development app (diff) | |
download | ferdium-app-ba5448cf4f9f6000b6596fc0de67ca1c0fb1d7bf.tar.gz ferdium-app-ba5448cf4f9f6000b6596fc0de67ca1c0fb1d7bf.tar.zst ferdium-app-ba5448cf4f9f6000b6596fc0de67ca1c0fb1d7bf.zip |
Change menu bar logic to be hidden by default when autohide is enabled
Diffstat (limited to 'src')
-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( |