Revert "popupMenu: Make the section invisible if it has no visible children"
This reverts commit 5a0ac6c2ac5686c679988c2ca922ed758d2b19f1. https://bugzilla.gnome.org/show_bug.cgi?id=707801
This commit is contained in:
parent
1edb9f7525
commit
fd9401cc62
@ -921,19 +921,10 @@ const PopupMenuSection = new Lang.Class({
|
|||||||
this.isOpen = true;
|
this.isOpen = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
_syncVisibility: function() {
|
|
||||||
this.actor.visible = !this.isEmpty();
|
|
||||||
},
|
|
||||||
|
|
||||||
// deliberately ignore any attempt to open() or close(), but emit the
|
// deliberately ignore any attempt to open() or close(), but emit the
|
||||||
// corresponding signal so children can still pick it up
|
// corresponding signal so children can still pick it up
|
||||||
open: function() {
|
open: function() { this.emit('open-state-changed', true); },
|
||||||
this._syncVisibility();
|
close: function() { this.emit('open-state-changed', false); },
|
||||||
this.emit('open-state-changed', true);
|
|
||||||
},
|
|
||||||
close: function() {
|
|
||||||
this.emit('open-state-changed', false);
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const PopupSubMenuMenuItem = new Lang.Class({
|
const PopupSubMenuMenuItem = new Lang.Class({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user