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:
parent
d4f07410a1
commit
7800bd2158
@ -1362,7 +1362,10 @@ var FolderView = class FolderView extends BaseAppView {
|
|||||||
if (apps.some(appIcon => appIcon.id == appId))
|
if (apps.some(appIcon => appIcon.id == appId))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let icon = new AppIcon(app);
|
let icon = this._items[appId];
|
||||||
|
if (!icon)
|
||||||
|
icon = new AppIcon(app);
|
||||||
|
|
||||||
apps.push(icon);
|
apps.push(icon);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user