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 committed by Florian Müllner
parent d4f07410a1
commit 7800bd2158

View File

@ -1362,7 +1362,10 @@ var FolderView = 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);
};