fix ConditionalWidget inversion
[vuplus_dvbapp] / lib / python / Components / ConditionalWidget.py
index 62daf5e..7e4304a 100644 (file)
@@ -18,10 +18,10 @@ class ConditionalWidget(GUIComponent):
                self.conditionalFunction = conditionalFunction
                
        def activateCondition(self, condition):
-               if (condition):
-                       self.state = self.HIDDEN
-               else:
+               if condition:
                        self.state = self.SHOWN
+               else:
+                       self.state = self.HIDDEN
 
        def update(self):
                if (self.conditionalFunction != None):