fix inverted setting (meaning was inverted too)
[enigma2.git] / lib / python / Components / ConfigList.py
index 196381b..7ed0001 100644 (file)
@@ -10,6 +10,7 @@ class ConfigList(HTMLComponent, GUIComponent):
                self.l = eListboxPythonConfigContent()
                self.l.setList(list)
                self.l.setSeperation(100)
+               self.list = list
        
        def toggle(self):
                selection = self.getCurrent()
@@ -20,13 +21,20 @@ class ConfigList(HTMLComponent, GUIComponent):
                selection = self.getCurrent()
                selection[1].handleKey(key)
                self.invalidateCurrent()
-       
+
        def getCurrent(self):
                return self.l.getCurrentSelection()
        
        def invalidateCurrent(self):
                self.l.invalidateEntry(self.l.getCurrentSelectionIndex())
-       
+               
+       def invalidate(self, entry):
+               i = 0
+               for x in self.list:
+                       if (entry.getConfigPath() == x[1].parent.getConfigPath()):
+                               self.l.invalidateEntry(i)
+                       i += 1
+               
        def GUIcreate(self, parent):
                self.instance = eListbox(parent)
                self.instance.setContent(self.l)