Improved startup efficiency, don't store as much for library

git-svn-id: file:///home/anna/Desktop/ocarina-legacy/mithos/ocarina@48 1daee41c-8060-4895-b1f0-2197c00d777a
This commit is contained in:
bjschuma 2009-07-29 22:17:27 +00:00
parent 207febb3bc
commit 1a861585a9
4 changed files with 6 additions and 1 deletions

View File

@ -36,6 +36,8 @@ class LibList(List):
for file in self.data.library.files:
List.insert(self,file)
self.populated = True
self.makeLabel()
self.timeText()
def stopUpdates(self):
self.updating = False

View File

@ -85,7 +85,7 @@ class List(gtk.ScrolledWindow):
def makeLabel(self):
print self.count, self.text
#print self.count, self.text
self.label.set_text(self.text+" ("+str(self.count)+")")

View File

@ -19,6 +19,7 @@ class Playlist(List):
List.insert(self,file)
self.populated = True
self.makeLabel()
self.timeText()
def insert(self,file):
if self.populated == False:

View File

@ -35,3 +35,5 @@ class Queue(List):
for file in self.data.curQ:
List.insert(self,self.data.library.files[file])
self.populated = True
self.makeLabel()
self.timeText()