From 0ee61341634a64b426a5934065e43fdade81971d Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 26 Jan 2006 14:18:56 +0000 Subject: [PATCH] fix EOF bug, display pvrstate only when seeking --- lib/python/Screens/InfoBarGenerics.py | 16 ++++++++++++---- 1 file 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: -- 2.30.2