From: Stefan Pluecken Date: Thu, 23 Feb 2006 01:02:03 +0000 (+0000) Subject: make setTitle work by using onShown X-Git-Tag: 2.6.0~4036 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/aaf5b8aba767c60f84b74caf02da21c1f0272223 make setTitle work by using onShown --- diff --git a/lib/python/Screens/PluginBrowser.py b/lib/python/Screens/PluginBrowser.py index adec1b6b..3dd49a69 100644 --- a/lib/python/Screens/PluginBrowser.py +++ b/lib/python/Screens/PluginBrowser.py @@ -68,6 +68,7 @@ class PluginDownloadBrowser(Screen): self.container.appClosed.get().append(self.runFinished) self.container.dataAvail.get().append(self.dataAvail) self.onLayoutFinish.append(self.startRun) + self.onShown.append(self.setTitle) self.list = [] self["list"] = PluginList(self.list) @@ -100,11 +101,13 @@ class PluginDownloadBrowser(Screen): elif self.type == self.REMOVE: self.session.openWithCallback(self.installFinished, Console, ["ipkg remove " + self.pluginlist[self["list"].l.getCurrentSelectionIndex()][0]]) + def setTitle(self): + if self.type == self.DOWNLOAD: + self.session.currentDialog.instance.setTitle(_("Downloadale new plugins")) + elif self.type == self.REMOVE: + self.session.currentDialog.instance.setTitle(_("Remove plugins")) + def startRun(self): - #if self.type == self.DOWNLOAD: - # self.session.currentDialog.instance.setTitle(_("Downloadale new plugins")) - #elif self.type == self.REMOVE: - # self.session.currentDialog.instance.setTitle(_("Remove plugins")) self["list"].instance.hide() self.container.execute("ipkg update")