[gnome-music/wip/mschraal/gtk4-pre-squash-backup: 243/254] Remove delayed loading




commit 40714caf830dd69858493a652ed14ce49b47b903
Author: Marinus Schraal <mschraal gnome org>
Date:   Mon Feb 14 01:57:56 2022 +0100

    Remove delayed loading

 gnomemusic/views/artistsview.py | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/gnomemusic/views/artistsview.py b/gnomemusic/views/artistsview.py
index aaadcfc4f..a9c2225d4 100644
--- a/gnomemusic/views/artistsview.py
+++ b/gnomemusic/views/artistsview.py
@@ -60,7 +60,6 @@ class ArtistsView(Gtk.Paned):
 
         self._application = application
         self._loaded_artists = []
-        self._widget_counter = 1
 
         # This indicates if the current list has been empty and has
         # had no user interaction since.
@@ -101,11 +100,6 @@ class ArtistsView(Gtk.Paned):
         artist_tile.props.coreartist = coreartist
         artist_tile.props.text = coreartist.props.artist
 
-        GLib.timeout_add(
-            self._widget_counter * 300, artist_tile.retrieve,
-            priority=GLib.PRIORITY_LOW)
-        self._widget_counter = self._widget_counter + 1
-
     def _on_model_items_changed(
             self, model: Gtk.SingleSelection, position: int, removed: int,
             added: int) -> None:


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