aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/Setup.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-10-20 12:58:24 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-10-20 12:58:24 +0000
commit37b576593006124e0419b4c4663889b5de307e9b (patch)
tree36b8ce25de9a0ec0c7d21957265987644316c03e /lib/python/Screens/Setup.py
parent77d7340fd113c7e9ab2d62ace9c7e7b6eb57cd8a (diff)
downloadenigma2-37b576593006124e0419b4c4663889b5de307e9b.tar.gz
enigma2-37b576593006124e0419b4c4663889b5de307e9b.zip
add GetText for showing config entries, update summary values when changed
Diffstat (limited to 'lib/python/Screens/Setup.py')
-rw-r--r--lib/python/Screens/Setup.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/python/Screens/Setup.py b/lib/python/Screens/Setup.py
index 48c85c8e..59f0ff57 100644
--- a/lib/python/Screens/Setup.py
+++ b/lib/python/Screens/Setup.py
@@ -92,7 +92,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()
@@ -105,7 +105,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
@@ -142,7 +142,14 @@ class Setup(ConfigListScreen, Screen):
self.close()
def keyCancel(self):
- self.session.openWithCallback(self.cancelConfirm, MessageBox, _("Really close without saving settings?"))
+ is_changed = False
+ for x in self["config"].list:
+ is_changed |= x[1].isChanged()
+
+ if is_changed:
+ self.session.openWithCallback(self.cancelConfirm, MessageBox, _("Really close without saving settings?"))
+ else:
+ self.close()
def getSetupTitle(id):
xmldata = setupdom.childNodes[0].childNodes