aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.js
diff options
context:
space:
mode:
authorLibravatar Daniel Peukert <dan.peukert@gmail.com>2020-02-11 12:00:22 +0100
committerLibravatar Daniel Peukert <dan.peukert@gmail.com>2020-02-11 13:05:46 +0100
commitba5448cf4f9f6000b6596fc0de67ca1c0fb1d7bf (patch)
tree7d17e4c942355ad06b65b71d759f74f0cc7428b0 /src/stores/SettingsStore.js
parentDocument misty usage to run development app (diff)
downloadferdium-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/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(