mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +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) {
|
||||
/* Menu might be named "appmenu" */
|
||||
if(!menuAdded && name === 'appmenu')
|
||||
if(!menuAdded && (!name || name === 'appmenu'))
|
||||
name = 'menu';
|
||||
|
||||
const widget = this[`${name}Widget`];
|
||||
|
Reference in New Issue
Block a user