[gnome-games/wip/exalm/tnum: 15/24] collection-thumbnail: Refresh the covers whenever collection changes




commit 88a1f992868e450a25cf22f841b5cb4f7eed40a3
Author: Neville <nevilleantony98 gmail com>
Date:   Sun Aug 9 16:17:30 2020 +0530

    collection-thumbnail: Refresh the covers whenever collection changes
    
    When a collection-model's sort changes, the flowbox it is bound to has
    to refresh to conform to changes in the collection-model. When this
    happens thw flowbox will change the collection that belongs to
    collection-icon-view which then changes the collection prop here in
    collection-thumbnail. But the thumbnail wasn't refreshed to accomodate
    the change in collection-model of the new collection. This commit makes
    sure that thumbnails are refreshed whenever the collection prop changes.

 src/ui/collection-thumbnail.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/ui/collection-thumbnail.vala b/src/ui/collection-thumbnail.vala
index b43df10b8..4c43d2857 100644
--- a/src/ui/collection-thumbnail.vala
+++ b/src/ui/collection-thumbnail.vala
@@ -30,6 +30,7 @@ private class Games.CollectionThumbnail : Gtk.Bin {
                        }
 
                        games_changed_id = collection.games_changed.connect (on_games_changed);
+                       on_games_changed ();
                }
        }
 


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