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.
This commit is contained in:
Rafał Dzięgiel
2021-04-14 17:48:57 +02:00
parent 4766efbbc4
commit a717e481e8

View File

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