popupMenu: Close all child menus when the main menu is closed
Otherwise, if something managed to call close(), it wouldn't close any child menus. https://bugzilla.gnome.org/show_bug.cgi?id=693572
This commit is contained in:
parent
c9783b38c4
commit
809295c03d
@ -1267,6 +1267,10 @@ const PopupMenu = new Lang.Class({
|
|||||||
if (this._activeMenuItem)
|
if (this._activeMenuItem)
|
||||||
this._activeMenuItem.setActive(false);
|
this._activeMenuItem.setActive(false);
|
||||||
|
|
||||||
|
this._childMenus.forEach(function(childMenu) {
|
||||||
|
childMenu.close();
|
||||||
|
});
|
||||||
|
|
||||||
if (this._boxPointer.actor.visible)
|
if (this._boxPointer.actor.visible)
|
||||||
this._boxPointer.hide(animate);
|
this._boxPointer.hide(animate);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user