appMenu: Hide overview when pressing on 'Show Details'

If the 'Show Details' in the app menu is pressed, the overview
will hide now, making it consistent with other launch actions.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5279

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2329>
This commit is contained in:
PhilProg 2022-06-07 19:22:54 +00:00 committed by Florian Müllner
parent a06b469fbb
commit 9eef6ec44c

View File

@ -88,6 +88,7 @@ var AppMenu = class AppMenu extends PopupMenu.PopupMenu {
'org.gtk.Actions', 'Activate',
new GLib.Variant('(sava{sv})', ['details', [args], null]),
null, 0, -1, null);
Main.overview.hide();
});
this.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());