allView: Redisplay on folder changes

Now that redisplaying is a lightweight operation that only
adds and removes what changed, we can not be concerned about
redisplaying on folder changes.

Redisplaying will be necessary when custom order in the app
grid is implemented, in order to update not only which icons
are hidden, but also their position.

Call _redisplay() in AllView when folders change.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/645
This commit is contained in:
Georges Basile Stavracas Neto 2019-07-02 13:33:07 -03:00
parent 9c6f558c9e
commit 00ec8ca989
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385

View File

@ -386,7 +386,7 @@ var AllView = class AllView extends BaseAppView {
if (!icon) {
icon = new FolderIcon(id, path, this);
icon.connect('name-changed', this._itemNameChanged.bind(this));
icon.connect('apps-changed', this._refilterApps.bind(this));
icon.connect('apps-changed', this._redisplay.bind(this));
}
newApps.push(icon);
this.folderIcons.push(icon);