appDisplay: Ensure we don't recreate existing AppIcons for folders

This was missed in 910037f014, make sure
we do the same thing for AppIcons that are created when reloading
folders.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/851
This commit is contained in:
Jonas Dreßler 2019-11-23 21:44:55 +01:00
parent 2842670082
commit 7e9f30da0a

View File

@ -1417,7 +1417,10 @@ class FolderView extends BaseAppView {
if (apps.some(appIcon => appIcon.id == appId))
return;
let icon = new AppIcon(app);
let icon = this._items[appId];
if (!icon)
icon = new AppIcon(app);
apps.push(icon);
};