allView: Redisplay on folder changes

Now that redisplaying is a lightweight operation that only
adds and removes what changed, we don't need to just refilter
the app icons in AllView when a folder changes.

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 f214c5b572
commit 038917e5f1
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385

View File

@ -394,7 +394,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);