From 8c5e8f7163867e2e8bfc07784904dc14a9ebaa86 Mon Sep 17 00:00:00 2001 From: Fraxinas Date: Fri, 7 Nov 2008 08:58:21 +0100 Subject: [PATCH] move selection index on EOS (this will scroll through playlist instead of always displaying the uppermost page) --- lib/python/Components/MediaPlayer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/python/Components/MediaPlayer.py b/lib/python/Components/MediaPlayer.py index 791274f..87ba977 100644 --- a/lib/python/Components/MediaPlayer.py +++ b/lib/python/Components/MediaPlayer.py @@ -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: -- 2.7.4