aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-23 01:02:03 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-23 01:02:03 +0000
commitaaf5b8aba767c60f84b74caf02da21c1f0272223 (patch)
tree92eb46be00399b2b82caf98f562a2ad4ec042cb4 /lib/python
parent25d7d8f83be2c4b4ede842e7311f0162d230b0c2 (diff)
downloadenigma2-aaf5b8aba767c60f84b74caf02da21c1f0272223.tar.gz
enigma2-aaf5b8aba767c60f84b74caf02da21c1f0272223.zip
make setTitle work by using onShown
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/PluginBrowser.py11
1 files changed, 7 insertions, 4 deletions
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")