mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
1 changed files with 4 additions and 0 deletions
|
|
@ -1267,6 +1267,10 @@ const PopupMenu = new Lang.Class({
|
|||
if (this._activeMenuItem)
|
||||
this._activeMenuItem.setActive(false);
|
||||
|
||||
this._childMenus.forEach(function(childMenu) {
|
||||
childMenu.close();
|
||||
});
|
||||
|
||||
if (this._boxPointer.actor.visible)
|
||||
this._boxPointer.hide(animate);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue