diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 714f6d148..6bdd2ee51 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -123,6 +123,7 @@ class BaseAppView { _redisplay() { this.removeAll(); this._loadApps(); + this._loadGrid(); } getAllItems() { @@ -146,7 +147,7 @@ class BaseAppView { return a.name.localeCompare(b.name); } - loadGrid() { + _loadGrid() { this._allItems.sort(this._compareItems); this._allItems.forEach(item => this._grid.addItem(item)); this.emit('view-loaded'); @@ -417,8 +418,10 @@ var AllView = class AllView extends BaseAppView { { isDraggable: favoritesWritable }); this.addItem(icon); }); + } - this.loadGrid(); + _loadGrid() { + super._loadGrid(); this._refilterApps(); } @@ -733,8 +736,6 @@ var FrequentView = class FrequentView extends BaseAppView { { isDraggable: favoritesWritable }); this.addItem(appIcon); } - - this.loadGrid(); } // Called before allocation to calculate dynamic spacing @@ -1173,8 +1174,6 @@ var FolderView = class FolderView extends BaseAppView { addAppId(appInfo.get_id()); }); - - this.loadGrid(); } };