[kupfer] rhythmbox: Don't cache the Songs subsource



commit 25a854fa1942595cffd9886067d1072393fe8c0a
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Tue Jan 19 13:37:25 2010 +0100

    rhythmbox: Don't cache the Songs subsource
    
    We don't pre-cache the Songs subsource since it may create lots of
    unneeded KupferObjects and it seems to be reasonably quick on the
    first load anyway.

 kupfer/plugin/rhythmbox.py |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/plugin/rhythmbox.py b/kupfer/plugin/rhythmbox.py
index 1529cf2..efb491e 100644
--- a/kupfer/plugin/rhythmbox.py
+++ b/kupfer/plugin/rhythmbox.py
@@ -387,9 +387,6 @@ class RhythmboxSource (AppLeafContentMixin, Source):
 		yield SourceLeaf(artist_source)
 		yield SourceLeaf(album_source)
 		yield SourceLeaf(songs_source)
-		# cache the subsources
-		for src in (artist_source, album_source, songs_source):
-			src.get_leaves()
 		# we use get_leaves here to get sorting etc right
 		if __kupfer_settings__["toplevel_artists"]:
 			for leaf in artist_source.get_leaves():



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