add method saveAll to ConfigListScreen
[enigma2.git] / lib / python / Components / ConfigList.py
index d1b295baedff92dceff541a19474f26e0f4aca25..122d0123cc09870351ad2caffa910fd569df5d50 100644 (file)
@@ -24,7 +24,7 @@ class ConfigList(HTMLComponent, GUIComponent, object):
        def execEnd(self):
                rcinput = eRCInput.getInstance()
                rcinput.setKeyboardMode(rcinput.kmNone)
-               self.timer.timeout.get().remove(self.timeout)
+               self.timer.callback.remove(self.timeout)
 
        def toggle(self):
                selection = self.getCurrent()
@@ -77,6 +77,7 @@ class ConfigList(HTMLComponent, GUIComponent, object):
                if self.current:
                        self.current[1].onDeselect(self.session)
                instance.selectionChanged.get().remove(self.selectionChanged)
+               instance.setContent(None)
        
        def setList(self, l):
                self.timer.stop()
@@ -171,12 +172,15 @@ class ConfigListScreen:
        def keyNumberGlobal(self, number):
                self["config"].handleKey(KEY_0 + number)
                self.__changed()
+               
+       def saveAll(self):
+               for x in self["config"].list:
+                       x[1].save()
 
        # keySave and keyCancel are just provided in case you need them.
        # you have to call them by yourself.
        def keySave(self):
-               for x in self["config"].list:
-                       x[1].save()
+               self.saveAll()
                self.close()
        
        def cancelConfirm(self, result):