aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-01-26 14:18:56 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-01-26 14:18:56 +0000
commit0ee61341634a64b426a5934065e43fdade81971d (patch)
treef35e83c46c2b1a3dd886041c58e49a19539982b4 /lib/python
parentf11b19ef35da9fddf1bbc406be6518b66c6e46c1 (diff)
downloadenigma2-0ee61341634a64b426a5934065e43fdade81971d.tar.gz
enigma2-0ee61341634a64b426a5934065e43fdade81971d.zip
fix EOF bug, display pvrstate only when seeking
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index f40feb3f..f1267afa 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -95,11 +95,14 @@ class InfoBarShowHide:
def lockShow(self):
self.__locked = self.__locked + 1
- self.show()
+ if self.execing:
+ self.show()
+ self.hideTimer.stop()
def unlockShow(self):
self.__locked = self.__locked - 1
- self.startHideTimer()
+ if self.execing:
+ self.startHideTimer()
# def startShow(self):
# self.instance.m_animation.startMoveAnimation(ePoint(0, 600), ePoint(0, 380), 100)
@@ -456,7 +459,7 @@ class InfoBarSeek:
"""handles actions like seeking, pause"""
# ispause, isff, issm
- SEEK_STATE_PLAY = (0, 0, 0, "")
+ SEEK_STATE_PLAY = (0, 0, 0, ">")
SEEK_STATE_PAUSE = (1, 0, 0, "||")
SEEK_STATE_FF_2X = (0, 2, 0, ">> 2x")
SEEK_STATE_FF_4X = (0, 4, 0, ">> 4x")
@@ -708,12 +711,17 @@ class InfoBarPVRState:
def __init__(self):
self.onPlayStateChanged.append(self.__playStateChanged)
self.pvrStateDialog = self.session.instantiateDialog(PVRState)
- self.onShow.append(self.pvrStateDialog.show)
+ self.onShow.append(self.__mayShow)
self.onHide.append(self.pvrStateDialog.hide)
+ def __mayShow(self):
+ if self.seekstate != self.SEEK_STATE_PLAY:
+ self.pvrStateDialog.show()
+
def __playStateChanged(self, state):
playstateString = state[3]
self.pvrStateDialog["state"].setText(playstateString)
+ self.__mayShow()
class InfoBarShowMovies: