[gnome-shell/gbsneto/icon-grid-dnd: 24/37] allView: Redisplay on folder changes



commit d2d23006889238db40eaa44a47e1b5969303b82f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Jul 2 13:33:07 2019 -0300

    allView: Redisplay on folder changes
    
    Now that redisplaying is a lightweight operation that only
    adds and removes what changed, we don't need to just refilter
    the app icons in AllView when a folder changes.
    
    In fact, in the future, redisplaying when folder changes will
    be a requirement.
    
    Call _redisplay() in AllView when folders change.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603

 js/ui/appDisplay.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 5d5f78b96..f3e53fb5f 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -391,7 +391,7 @@ var AllView = class AllView extends BaseAppView {
             let icon = this._items[id];
             if (!icon) {
                 icon = new FolderIcon(id, path, this);
-                icon.connect('apps-changed', this._refilterApps.bind(this));
+                icon.connect('apps-changed', this._redisplay.bind(this));
             }
             newApps.push(icon);
             this.folderIcons.push(icon);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]