diff options
author | 2019-09-18 14:48:48 +0200 | |
---|---|---|
committer | 2019-09-18 14:48:48 +0200 | |
commit | c6356d5ba0e8e932cd44ba702b41c27737bc6339 (patch) | |
tree | 7204230da8b9be08dd2934704fe0d1e1b59421fb /src/lib | |
parent | Fix todo server info (diff) | |
download | ferdium-app-c6356d5ba0e8e932cd44ba702b41c27737bc6339.tar.gz ferdium-app-c6356d5ba0e8e932cd44ba702b41c27737bc6339.tar.zst ferdium-app-c6356d5ba0e8e932cd44ba702b41c27737bc6339.zip |
Fix autohide menubar feature
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 0c3df8db3..70e945f9a 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -570,6 +570,19 @@ const _titleBarTemplateFactory = intl => [ | |||
570 | browserWindow.setFullScreen(!browserWindow.isFullScreen()); | 570 | browserWindow.setFullScreen(!browserWindow.isFullScreen()); |
571 | }, | 571 | }, |
572 | }, | 572 | }, |
573 | { | ||
574 | label: intl.formatMessage(menuItems.autohideMenuBar), | ||
575 | type: 'checkbox', | ||
576 | checked: window.ferdi.stores.settings.app.autohideMenuBar, | ||
577 | click: () => { | ||
578 | window.ferdi.actions.settings.update({ | ||
579 | type: 'app', | ||
580 | data: { | ||
581 | autohideMenuBar: !window.ferdi.stores.settings.app.autohideMenuBar, | ||
582 | }, | ||
583 | }); | ||
584 | }, | ||
585 | }, | ||
573 | ], | 586 | ], |
574 | }, | 587 | }, |
575 | { | 588 | { |
@@ -779,19 +792,6 @@ export default class FranzMenu { | |||
779 | label: intl.formatMessage(menuItems.unhide), | 792 | label: intl.formatMessage(menuItems.unhide), |
780 | role: 'unhide', | 793 | role: 'unhide', |
781 | }, | 794 | }, |
782 | ...(!isMac ? [{ | ||
783 | label: intl.formatMessage(menuItems.autohideMenuBar), | ||
784 | type: 'checkbox', | ||
785 | checked: this.stores.settings.app.autohideMenuBar, | ||
786 | click: () => { | ||
787 | this.actions.settings.update({ | ||
788 | type: 'app', | ||
789 | data: { | ||
790 | autohideMenuBar: !this.stores.settings.app.autohideMenuBar, | ||
791 | }, | ||
792 | }); | ||
793 | }, | ||
794 | }] : []), | ||
795 | { | 795 | { |
796 | type: 'separator', | 796 | type: 'separator', |
797 | }, | 797 | }, |