X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/6eeefece35e4269e02fdb7abab4f79d8e7b8f98b..32027c3eaa6b04ce081640ef89a73a93081aea85:/lib/python/Screens/Setup.py diff --git a/lib/python/Screens/Setup.py b/lib/python/Screens/Setup.py index b36a6b45..432d8245 100644 --- a/lib/python/Screens/Setup.py +++ b/lib/python/Screens/Setup.py @@ -89,9 +89,9 @@ class Setup(ConfigListScreen, Screen): { "cancel": self.keyCancel, "save": self.keySave, - }, -1) + }, -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"):