mirror of
https://github.com/Rafostar/clapper.git
synced 2025-09-01 00:41:58 +02:00
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:
@@ -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 === 'appmenu')
|
if(!menuAdded && (!name || name === 'appmenu'))
|
||||||
name = 'menu';
|
name = 'menu';
|
||||||
|
|
||||||
const widget = this[`${name}Widget`];
|
const widget = this[`${name}Widget`];
|
||||||
|
Reference in New Issue
Block a user