show red record button only if hdd is present
[enigma2.git] / lib / python / Components / ConditionalWidget.py
index eec5b43..8fb7c38 100644 (file)
@@ -40,7 +40,7 @@ class ConditionalWidget(Widget):
                if (withTimer):
                        self.conditionCheckTimer = eTimer()
                        self.conditionCheckTimer.timeout.get().append(self.update)
                if (withTimer):
                        self.conditionCheckTimer = eTimer()
                        self.conditionCheckTimer.timeout.get().append(self.update)
-                       self.conditionCheckTimer.start(1000)
+                       self.conditionCheckTimer.start(500)
                
        def setConnect(self, conditionalFunction):
                self.conditionalFunction = conditionalFunction
                
        def setConnect(self, conditionalFunction):
                self.conditionalFunction = conditionalFunction
@@ -48,11 +48,9 @@ class ConditionalWidget(Widget):
        def activateCondition(self, condition):
                if (condition):
                        if (self.state == self.HIDDEN):
        def activateCondition(self, condition):
                if (condition):
                        if (self.state == self.HIDDEN):
-                               print "update: " + str(self) + " SHOW"
                                self.showWidget()
                else:
                        if (self.state == self.SHOWN):
                                self.showWidget()
                else:
                        if (self.state == self.SHOWN):
-                               print "update: " + str(self) + " HIDE"
                                self.hideWidget()
 
        def update(self):
                                self.hideWidget()
 
        def update(self):