diff options
author | 2020-10-11 20:16:18 +0200 | |
---|---|---|
committer | 2020-10-11 19:16:18 +0100 | |
commit | 3eb55287d9df74dae7e8196487e7038fec04d4ce (patch) | |
tree | b58ec428c018102b49ee719532a3c27e140d2a78 /src/lib | |
parent | Improve Ferdi's design (#977) (diff) | |
download | ferdium-app-3eb55287d9df74dae7e8196487e7038fec04d4ce.tar.gz ferdium-app-3eb55287d9df74dae7e8196487e7038fec04d4ce.tar.zst ferdium-app-3eb55287d9df74dae7e8196487e7038fec04d4ce.zip |
Add vertical style and "Always show workspace drawer" setting (#567)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 3c5fc6530..dde4f694a 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -1169,17 +1169,21 @@ export default class FranzMenu { | |||
1169 | }); | 1169 | }); |
1170 | 1170 | ||
1171 | // Open workspace drawer: | 1171 | // Open workspace drawer: |
1172 | const drawerLabel = ( | 1172 | if (!this.stores.settings.app.alwaysShowWorkspaces) { |
1173 | isWorkspaceDrawerOpen ? menuItems.closeWorkspaceDrawer : menuItems.openWorkspaceDrawer | 1173 | const drawerLabel = ( |
1174 | ); | 1174 | isWorkspaceDrawerOpen ? menuItems.closeWorkspaceDrawer : menuItems.openWorkspaceDrawer |
1175 | ); | ||
1176 | menu.push({ | ||
1177 | label: intl.formatMessage(drawerLabel), | ||
1178 | accelerator: `${cmdKey}+D`, | ||
1179 | click: () => { | ||
1180 | workspaceActions.toggleWorkspaceDrawer(); | ||
1181 | }, | ||
1182 | enabled: this.stores.user.isLoggedIn, | ||
1183 | }); | ||
1184 | } | ||
1185 | |||
1175 | menu.push({ | 1186 | menu.push({ |
1176 | label: intl.formatMessage(drawerLabel), | ||
1177 | accelerator: `${cmdKey}+D`, | ||
1178 | click: () => { | ||
1179 | workspaceActions.toggleWorkspaceDrawer(); | ||
1180 | }, | ||
1181 | enabled: this.stores.user.isLoggedIn, | ||
1182 | }, { | ||
1183 | type: 'separator', | 1187 | type: 'separator', |
1184 | }); | 1188 | }); |
1185 | 1189 | ||