X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/6d7673190e7fec573aed8e15e98d470cd4189d52..cfb7ccb1ee949337ebbbde784828ed46943af6eb:/lib/python/Screens/Setup.py diff --git a/lib/python/Screens/Setup.py b/lib/python/Screens/Setup.py index 09984bd8..432d8245 100644 --- a/lib/python/Screens/Setup.py +++ b/lib/python/Screens/Setup.py @@ -91,7 +91,7 @@ class Setup(ConfigListScreen, Screen): "save": self.keySave, }, -2) - ConfigListScreen.__init__(self, list, session = session) + ConfigListScreen.__init__(self, list, session = session, on_change = self.changedEntry) self.changedEntry() @@ -104,7 +104,7 @@ class Setup(ConfigListScreen, Screen): return self["config"].getCurrent()[0] def getCurrentValue(self): - return str(self["config"].getCurrent()[1].value) + return str(self["config"].getCurrent()[1].getText()) def createSummary(self): return SetupSummary @@ -124,18 +124,6 @@ class Setup(ConfigListScreen, Screen): # the second one is converted to string. list.append( (item_text, item) ) - def keySave(self): - print "save requested" - for x in self["config"].list: - x[1].save() - self.close() - - def keyCancel(self): - print "cancel requested" - for x in self["config"].list: - x[1].cancel() - self.close() - def getSetupTitle(id): xmldata = setupdom.childNodes[0].childNodes for x in elementsWithTag(xmldata, "setup"):