retry the waiting message
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 3 Jan 2006 12:57:23 +0000 (12:57 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 3 Jan 2006 12:57:23 +0000 (12:57 +0000)
lib/python/Components/MovieList.py
lib/python/Screens/MovieSelection.py

index b31f7ff..ff04722 100644 (file)
@@ -63,7 +63,7 @@ class MovieList(HTMLComponent, GUIComponent):
                        self.reload(root)
                self.l.setFont(0, gFont("Regular", 30))
                self.l.setFont(1, gFont("Regular", 18))
                        self.reload(root)
                self.l.setFont(0, gFont("Regular", 30))
                self.l.setFont(1, gFont("Regular", 18))
-
+               
        def moveToIndex(self, index):
                self.instance.moveSelectionTo(index)
 
        def moveToIndex(self, index):
                self.instance.moveSelectionTo(index)
 
index 9e1879c..30f8d40 100644 (file)
@@ -70,7 +70,6 @@ class MovieSelection(Screen):
                
                self.delayTimer = eTimer()
                self.delayTimer.timeout.get().append(self.updateHDDData)
                
                self.delayTimer = eTimer()
                self.delayTimer.timeout.get().append(self.updateHDDData)
-               self.delayTimer.start(0, 1)
                
                self["waitingtext"] = Label(_("Please wait... Loading list..."))
                
                
                self["waitingtext"] = Label(_("Please wait... Loading list..."))
                
@@ -87,6 +86,10 @@ class MovieSelection(Screen):
                                "contextMenu": self.doContext,
                        })
                self["actions"].csel = self
                                "contextMenu": self.doContext,
                        })
                self["actions"].csel = self
+               self.onShown.append(self.go)
+               
+       def go(self):
+               self.delayTimer.start(0, 1)
 
        def updateHDDData(self):
                self["list"].reload(eServiceReference("2:0:1:0:0:0:0:0:0:0:" + resolveFilename(SCOPE_HDD)))
 
        def updateHDDData(self):
                self["list"].reload(eServiceReference("2:0:1:0:0:0:0:0:0:0:" + resolveFilename(SCOPE_HDD)))