aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/InfoBarGenerics.py
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2010-03-29 22:44:29 +0200
committerghost <andreas.monzner@multimedia-labs.de>2010-03-31 10:09:28 +0200
commita3314e81d5904501481c1ba46f70162a4487a158 (patch)
tree49f9a80fd613a39f82f3f8aa59dd066c206094f8 /lib/python/Screens/InfoBarGenerics.py
parent37727defa26822965967c2f26b5e181f19ba7e64 (diff)
downloadenigma2-a3314e81d5904501481c1ba46f70162a4487a158.tar.gz
enigma2-a3314e81d5904501481c1ba46f70162a4487a158.zip
show timeshift state widget even in state play
this fixes bug #332
Diffstat (limited to 'lib/python/Screens/InfoBarGenerics.py')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 4085e724..f98d4c33 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -1110,15 +1110,21 @@ class InfoBarPVRState:
self.pvrStateDialog.hide()
else:
self._mayShow()
-
class InfoBarTimeshiftState(InfoBarPVRState):
def __init__(self):
InfoBarPVRState.__init__(self, screen=TimeshiftState, force_show = True)
+ self.__hideTimer = eTimer()
+ self.__hideTimer.callback.append(self.__hideTimeshiftState)
def _mayShow(self):
- if self.execing and self.timeshift_enabled and self.seekstate != self.SEEK_STATE_PLAY:
+ if self.execing and self.timeshift_enabled:
self.pvrStateDialog.show()
+ if self.seekstate == self.SEEK_STATE_PLAY and not self.shown:
+ self.__hideTimer.start(5*1000, True)
+
+ def __hideTimeshiftState(self):
+ self.pvrStateDialog.hide()
class InfoBarShowMovies: