appDisplay: Remove unnecessary unmapped handler
Since commit 35494f5d08
, all menus are closed when their source
gets unmapped.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>
This commit is contained in:
parent
2e04f9be8a
commit
5e90e8d385
@ -3430,16 +3430,6 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu {
|
|||||||
|
|
||||||
this.actor.add_style_class_name('app-well-menu');
|
this.actor.add_style_class_name('app-well-menu');
|
||||||
|
|
||||||
// Chain our visibility and lifecycle to that of the source
|
|
||||||
this._sourceMappedId = source.connect('notify::mapped', () => {
|
|
||||||
if (!source.mapped)
|
|
||||||
this.close();
|
|
||||||
});
|
|
||||||
source.connect('destroy', () => {
|
|
||||||
source.disconnect(this._sourceMappedId);
|
|
||||||
this.destroy();
|
|
||||||
});
|
|
||||||
|
|
||||||
Main.uiGroup.add_actor(this.actor);
|
Main.uiGroup.add_actor(this.actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user