diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index c235f87f8..b253fdb21 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -123,7 +123,10 @@ class BaseAppView { _redisplay() { this.removeAll(); this._loadApps(); - this._loadGrid(); + + this._allItems.sort(this._compareItems); + this._allItems.forEach(item => this._grid.addItem(item)); + this.emit('view-loaded'); } getAllItems() { @@ -147,12 +150,6 @@ class BaseAppView { return a.name.localeCompare(b.name); } - _loadGrid() { - this._allItems.sort(this._compareItems); - this._allItems.forEach(item => this._grid.addItem(item)); - this.emit('view-loaded'); - } - _selectAppInternal(id) { if (this._items[id]) this._items[id].actor.navigate_focus(null, St.DirectionType.TAB_FORWARD, false); @@ -338,6 +335,7 @@ var AllView = class AllView extends BaseAppView { openFolderId = this._currentPopup._source.id; super._redisplay(); + this._refilterApps(); if (openFolderId) { let [folderToReopen] = this.folderIcons.filter(folder => folder.id == openFolderId); @@ -420,11 +418,6 @@ var AllView = class AllView extends BaseAppView { }); } - _loadGrid() { - super._loadGrid(); - this._refilterApps(); - } - // Overridden from BaseAppView animate(animationDirection, onComplete) { this._scrollView.reactive = false;