appsMenu: Fix initial visibility of "Details" item
It is only supposed to be visible when Software is installed, but we currently only update the visibility on changes. https://gitlab.gnome.org/GNOME/gnome-shell/issues/989
This commit is contained in:
parent
61471f9fb4
commit
572d54981e
@ -110,9 +110,14 @@ class AppMenu extends PopupMenu.PopupMenu {
|
||||
});
|
||||
|
||||
this._appSystem.connect('installed-changed', () => {
|
||||
let sw = this._appSystem.lookup_app('org.gnome.Software.desktop');
|
||||
this._detailsItem.actor.visible = (sw != null);
|
||||
this._updateDetailsVisibility();
|
||||
});
|
||||
this._updateDetailsVisibility();
|
||||
}
|
||||
|
||||
_updateDetailsVisibility() {
|
||||
let sw = this._appSystem.lookup_app('org.gnome.Software.desktop');
|
||||
this._detailsItem.actor.visible = (sw != null);
|
||||
}
|
||||
|
||||
isEmpty() {
|
||||
|
Loading…
Reference in New Issue
Block a user