fix 'play' doesn't disappear when config.usage.show_infobar_on_skip is set
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 9 Feb 2009 12:30:05 +0000 (13:30 +0100)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 9 Feb 2009 12:30:05 +0000 (13:30 +0100)
lib/python/Screens/InfoBarGenerics.py

index d0aa44b88dcb04ca4a93c7b79b90814c9aa775e3..9e0e50aff7d3ef51a6257deaf14e1086de86df99 100644 (file)
@@ -1024,7 +1024,13 @@ class InfoBarPVRState:
        def __playStateChanged(self, state):
                playstateString = state[3]
                self.pvrStateDialog["state"].setText(playstateString)
        def __playStateChanged(self, state):
                playstateString = state[3]
                self.pvrStateDialog["state"].setText(playstateString)
-               self._mayShow()
+               
+               # if we return into "PLAY" state, ensure that the dialog gets hidden if there will be no infobar displayed
+               if not config.usage.show_infobar_on_skip.value and self.seekstate == self.SEEK_STATE_PLAY:
+                       self.pvrStateDialog.hide()
+               else:
+                       self._mayShow()
+                       
 
 class InfoBarTimeshiftState(InfoBarPVRState):
        def __init__(self):
 
 class InfoBarTimeshiftState(InfoBarPVRState):
        def __init__(self):