X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ba1b105a176e5f62faf9d6d1f4c1a4c19764a2e4..7a6022a72e1729a029d2356f6425bb8b8bcf2454:/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py?ds=sidebyside diff --git a/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py b/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py index 1ada35ee..dc494e6f 100644 --- a/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py +++ b/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py @@ -252,7 +252,7 @@ class UpdatePlugin(Screen): self["slider"] = self.slider self.activityslider = Slider(0, 100) self["activityslider"] = self.activityslider - self.status = Label("Upgrading Dreambox... Please wait") + self.status = Label(_("Upgrading Dreambox... Please wait")) self["status"] = self.status self.package = Label() self["package"] = self.package @@ -269,7 +269,7 @@ class UpdatePlugin(Screen): self.ipkg.addCallback(self.ipkgCallback) self.updating = True - self.package.setText("Package list update") + self.package.setText(_("Package list update")) self.ipkg.cmdUpdate() self["actions"] = ActionMap(["WizardActions"], @@ -327,10 +327,11 @@ class UpdatePlugin(Screen): pass def exit(self): - if self.packages != 0 and self.error == 0: - self.session.openWithCallback(self.exitAnswer, MessageBox, _("Upgrade finished. Do you want to reboot your Dreambox?")) - else: - self.close() + if not self.ipkg.isRunning(): + if self.packages != 0 and self.error == 0: + self.session.openWithCallback(self.exitAnswer, MessageBox, _("Upgrade finished. Do you want to reboot your Dreambox?")) + else: + self.close() def exitAnswer(self, result): if result is not None and result: