mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
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:
@@ -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`];
|
||||||
|
Reference in New Issue
Block a user