From 0cd1b84366f02eefc4a806a4aad034689d7a2540 Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Sat, 29 Feb 2020 19:00:37 +0100 Subject: #416 Fix regression in Menu builder --- src/lib/Menu.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 91e7c981a..1c4cc6ab5 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js @@ -755,7 +755,7 @@ export default class FranzMenu { : _titleBarTemplateFactory(intl, this.stores.settings.app.locked); const { actions } = this; - if (this.stores.settings.app.locked) { + if (!this.stores.settings.app.locked) { tpl[1].submenu.push({ type: 'separator', }, { @@ -964,19 +964,19 @@ export default class FranzMenu { }, about); } - if (serviceTpl.length > 0) { - tpl[3].submenu = serviceTpl; - } + if (!this.stores.settings.app.locked) { + if (serviceTpl.length > 0) { + tpl[3].submenu = serviceTpl; + } - if (workspaceStore.isFeatureEnabled) { - tpl[4].submenu = this.workspacesMenu(); - } + if (workspaceStore.isFeatureEnabled) { + tpl[4].submenu = this.workspacesMenu(); + } - if (todosStore.isFeatureEnabled) { - tpl[5].submenu = this.todosMenu(); - } + if (todosStore.isFeatureEnabled) { + tpl[5].submenu = this.todosMenu(); + } - if (!this.stores.settings.app.locked) { tpl[tpl.length - 1].submenu.push({ type: 'separator', }, ...this.debugMenu()); -- cgit v1.2.3-70-g09d2