diff options
author | 2019-09-16 15:15:26 +0200 | |
---|---|---|
committer | 2019-09-16 15:15:26 +0200 | |
commit | e4ec5d4384fe24c2550340cdb34ed17e01fe703f (patch) | |
tree | 0b73ecaf13e84eea5dccb8e4b9647428c59bbf36 | |
parent | fix(Windows): Fix window menu to get overwritten by Todos menu (diff) | |
download | ferdium-app-e4ec5d4384fe24c2550340cdb34ed17e01fe703f.tar.gz ferdium-app-e4ec5d4384fe24c2550340cdb34ed17e01fe703f.tar.zst ferdium-app-e4ec5d4384fe24c2550340cdb34ed17e01fe703f.zip |
Don't show menu-separator when feature is enabled
-rw-r--r-- | src/lib/Menu.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 41ed174bb..b72f0df96 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -948,12 +948,12 @@ export default class FranzMenu { | |||
948 | gaEvent(GA_CATEGORY_TODOS, 'toggleDrawer', 'menu'); | 948 | gaEvent(GA_CATEGORY_TODOS, 'toggleDrawer', 'menu'); |
949 | }, | 949 | }, |
950 | enabled: this.stores.user.isLoggedIn && isFeatureEnabledByUser, | 950 | enabled: this.stores.user.isLoggedIn && isFeatureEnabledByUser, |
951 | }, { | ||
952 | type: 'separator', | ||
953 | }); | 951 | }); |
954 | 952 | ||
955 | if (!isFeatureEnabledByUser) { | 953 | if (!isFeatureEnabledByUser) { |
956 | menu.push({ | 954 | menu.push({ |
955 | type: 'separator', | ||
956 | }, { | ||
957 | label: intl.formatMessage(menuItems.enableTodos), | 957 | label: intl.formatMessage(menuItems.enableTodos), |
958 | click: () => { | 958 | click: () => { |
959 | todoActions.toggleTodosFeatureVisibility(); | 959 | todoActions.toggleTodosFeatureVisibility(); |