Avoid situations with no menu in headerbar

Some shells might want to show menu button outside of the app. We do not support that.
This commit is contained in:
Rafał Dzięgiel
2021-04-12 17:30:00 +02:00
parent 2efa3e0bf6
commit 24bb9f298b

View File

@@ -151,7 +151,7 @@ class ClapperHeaderBarBase extends Gtk.Box
for(let name of layoutArr) {
/* Menu might be named "appmenu" */
if(!menuAdded && name === 'appmenu')
if(!menuAdded && (!name || name === 'appmenu'))
name = 'menu';
const widget = this[`${name}Widget`];