[gnome-games] application: Only load collection after connecting signals



commit 4231d8232ea9c596237a0319b299452d0ec1132f
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Feb 11 04:14:46 2020 +0500

    application: Only load collection after connecting signals

 src/ui/application.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index d3f5bb3f..6278f78b 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -201,13 +201,14 @@ public class Games.Application : Gtk.Application {
                icon_theme.add_resource_path ("/org/gnome/Games/gesture");
 
                init_game_sources ();
-               load_game_list.begin ();
 
                game_model = new GameModel ();
                game_collection.game_added.connect (game_model.add_game);
                game_collection.game_replaced.connect (game_model.replace_game);
                game_collection.game_removed.connect (game_model.remove_game);
 
+               load_game_list.begin ();
+
                cover_loader = new CoverLoader ();
        }
 


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