diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index cd2ebaef5..56276ce2d 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -983,10 +983,11 @@ export default class FranzMenu { | |||
983 | tpl[5].submenu = this.todosMenu(); | 983 | tpl[5].submenu = this.todosMenu(); |
984 | } | 984 | } |
985 | 985 | ||
986 | tpl[tpl.length - 1].submenu.push({ | 986 | if (!this.stores.settings.app.locked) { |
987 | type: 'separator', | 987 | tpl[tpl.length - 1].submenu.push({ |
988 | }, ...this.debugMenu()); | 988 | type: 'separator', |
989 | 989 | }, ...this.debugMenu()); | |
990 | } | ||
990 | this.currentTemplate = tpl; | 991 | this.currentTemplate = tpl; |
991 | const menu = Menu.buildFromTemplate(tpl); | 992 | const menu = Menu.buildFromTemplate(tpl); |
992 | Menu.setApplicationMenu(menu); | 993 | Menu.setApplicationMenu(menu); |