moving the list generation to a seperate method
[enigma2.git] / lib / python / Components / ConfigList.py
index e95f8c0e15a273b0421707b0dccf9fe21c02055d..7ed00014377ccf732695465b74d47976c5d07502 100644 (file)
@@ -27,7 +27,14 @@ class ConfigList(HTMLComponent, GUIComponent):
        
        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)