diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 14f95aced..ae4af54ca 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -173,10 +173,11 @@ class BaseAppView { // Remove old app icons removedApps.forEach(icon => { let iconIndex = this._allItems.indexOf(icon); + let id = icon.id; this._allItems.splice(iconIndex, 1); - this._grid.removeItem(icon); - delete this._items[icon.id]; + icon.destroy(); + delete this._items[id]; }); // Add new app icons