hide progressbar when event is not valid
[enigma2.git] / lib / python / Components / Converter / EventTime.py
index 955fdbc..d2b695d 100644 (file)
@@ -60,8 +60,13 @@ class EventTime(Poll, Converter, object):
 
                event = self.source.event
                if event is None:
+                       if len(self.downstream_elements) and self.downstream_elements[0].visible:
+                               self.downstream_elements[0].visible = False
                        return None
 
+               if len(self.downstream_elements) and not self.downstream_elements[0].visible:
+                       self.downstream_elements[0].visible = True
+
                now = int(time())
                start_time = event.getBeginTime()
                duration = event.getDuration()