diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-01-26 14:18:56 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-01-26 14:18:56 +0000 |
| commit | 0ee61341634a64b426a5934065e43fdade81971d (patch) | |
| tree | f35e83c46c2b1a3dd886041c58e49a19539982b4 /lib/python | |
| parent | f11b19ef35da9fddf1bbc406be6518b66c6e46c1 (diff) | |
| download | enigma2-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.py | 16 |
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: |
