From a717e481e86b9eb724a07647bd0e6b3483b438ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 14 Apr 2021 17:48:57 +0200 Subject: [PATCH] Fix missing top left menu buttons. Fixes #66 On some non-default system configurations the "menu" layout item might be replaced with one named "icon". Handle "icon" the same as "menu" when organizing headerbar buttons. --- src/headerbarBase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headerbarBase.js b/src/headerbarBase.js index ffa59d0a..f2348259 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 || name === 'appmenu')) + if(!menuAdded && (!name || name === 'appmenu' || name === 'icon')) name = 'menu'; const widget = this[`${name}Widget`];