aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-04 22:55:19 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-04 22:55:19 +0000
commit9fac5ff7371972cef663d456b96c68f51b5c2c01 (patch)
tree8e745e8be67e7e961ee52629034554a93b3b3da9 /lib/python/Plugins
parent4edd37a9d5b4370ef0ed4c055ebf1b654a52c73f (diff)
downloadenigma2-9fac5ff7371972cef663d456b96c68f51b5c2c01.tar.gz
enigma2-9fac5ff7371972cef663d456b96c68f51b5c2c01.zip
leave update plugin with ok button after the update process (we entered it with ok, so we leave it with ok)
Diffstat (limited to 'lib/python/Plugins')
-rw-r--r--lib/python/Plugins/update.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/Plugins/update.py b/lib/python/Plugins/update.py
index e919f383..d05d317e 100644
--- a/lib/python/Plugins/update.py
+++ b/lib/python/Plugins/update.py
@@ -24,11 +24,15 @@ class Example(Screen):
"back": self.close
}, -1)
+ self.update = True
self.delayTimer = eTimer()
self.delayTimer.timeout.get().append(self.doUpdateDelay)
def go(self):
- self.session.openWithCallback(self.doUpdate, MessageBox, _("Do you want to update your Dreambox?\nAfter pressing OK, please wait!"))
+ if self.update:
+ self.session.openWithCallback(self.doUpdate, MessageBox, _("Do you want to update your Dreambox?\nAfter pressing OK, please wait!"))
+ else:
+ self.close()
def doUpdateDelay(self):
lines = os.popen("ipkg update && ipkg upgrade", "r").readlines()
@@ -36,6 +40,7 @@ class Example(Screen):
for x in lines:
string += x
self["text"].setText(_("Updating finished. Here is the result:") + "\n\n" + string)
+ self.update = False
def doUpdate(self, val = False):