show red record button only if hdd is present
[enigma2.git] / lib / python / Components / ConditionalWidget.py
index eec5b4360a8a4b903cf8f8c46cf50f47c4d35770..8fb7c38935437d1d048f771ecfb894a89f7ae1ad 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):