move selection index on EOS (this will scroll through playlist instead of always...
authorFraxinas <andreas.frisch@multimedia-labs.de>
Fri, 7 Nov 2008 07:58:21 +0000 (08:58 +0100)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Fri, 7 Nov 2008 07:58:21 +0000 (08:58 +0100)
lib/python/Components/MediaPlayer.py

index 791274fcfa12d3f6e323dd580149f82ddac147a0..87ba977c0cbc9dba8ff39389289da66a9a52d6d7 100644 (file)
@@ -40,7 +40,7 @@ def PlaylistEntryComponent(serviceref, state):
 
        if png is not None:
                res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 5, 0, 16, 16, png))
-    
+
        return res
 
 class PlayList(MenuList):
@@ -76,6 +76,7 @@ class PlayList(MenuList):
        def setCurrentPlaying(self, index):
                self.oldCurrPlaying = self.currPlaying
                self.currPlaying = index
+               self.moveToIndex(index)
 
        def updateState(self, state):
                if len(self.list) > self.oldCurrPlaying and self.oldCurrPlaying != -1: