add method saveAll to ConfigListScreen
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 9 Jul 2008 16:53:27 +0000 (16:53 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 9 Jul 2008 16:53:27 +0000 (16:53 +0000)
lib/python/Components/ConfigList.py

index 9a68d42..122d012 100644 (file)
@@ -172,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):