From 24bb9f298b452871cb857d2da5bf4f5ca40f0e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Mon, 12 Apr 2021 17:30:00 +0200 Subject: [PATCH] Avoid situations with no menu in headerbar Some shells might want to show menu button outside of the app. We do not support that. --- src/headerbarBase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headerbarBase.js b/src/headerbarBase.js index 24f45d8f..ffa59d0a 100644 --- a/src/headerbarBase.js +++ b/src/headerbarBase.js @@ -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`];