diff options
author | 2019-09-14 13:47:49 +0200 | |
---|---|---|
committer | 2019-09-14 13:47:49 +0200 | |
commit | e9746cbfe618193ab580836643812e601ac4295a (patch) | |
tree | c0bbf8d14c7ffc86c71405129e0819f9f65dcdeb /src/lib | |
parent | docs: add dayzlun as a contributor (#34) (diff) | |
download | ferdium-app-e9746cbfe618193ab580836643812e601ac4295a.tar.gz ferdium-app-e9746cbfe618193ab580836643812e601ac4295a.tar.zst ferdium-app-e9746cbfe618193ab580836643812e601ac4295a.zip |
Implement #7
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index faf4d1902..c0436a501 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -201,6 +201,10 @@ const menuItems = defineMessages({ | |||
201 | id: 'menu.app.unhide', | 201 | id: 'menu.app.unhide', |
202 | defaultMessage: '!!!Unhide', | 202 | defaultMessage: '!!!Unhide', |
203 | }, | 203 | }, |
204 | autohideMenuBar: { | ||
205 | id: 'menu.app.autohideMenuBar', | ||
206 | defaultMessage: '!!!Auto-hide menu bar', | ||
207 | }, | ||
204 | quit: { | 208 | quit: { |
205 | id: 'menu.app.quit', | 209 | id: 'menu.app.quit', |
206 | defaultMessage: '!!!Quit', | 210 | defaultMessage: '!!!Quit', |
@@ -724,6 +728,19 @@ export default class FranzMenu { | |||
724 | label: intl.formatMessage(menuItems.unhide), | 728 | label: intl.formatMessage(menuItems.unhide), |
725 | role: 'unhide', | 729 | role: 'unhide', |
726 | }, | 730 | }, |
731 | ...(!isMac ? [{ | ||
732 | label: intl.formatMessage(menuItems.autohideMenuBar), | ||
733 | type: 'checkbox', | ||
734 | checked: this.stores.settings.app.autohideMenuBar, | ||
735 | click: () => { | ||
736 | this.actions.settings.update({ | ||
737 | type: 'app', | ||
738 | data: { | ||
739 | autohideMenuBar: !this.stores.settings.app.autohideMenuBar, | ||
740 | }, | ||
741 | }); | ||
742 | }, | ||
743 | }] : []), | ||
727 | { | 744 | { |
728 | type: 'separator', | 745 | type: 'separator', |
729 | }, | 746 | }, |