diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-23 01:02:03 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-23 01:02:03 +0000 |
| commit | aaf5b8aba767c60f84b74caf02da21c1f0272223 (patch) | |
| tree | 92eb46be00399b2b82caf98f562a2ad4ec042cb4 /lib/python/Screens/PluginBrowser.py | |
| parent | 25d7d8f83be2c4b4ede842e7311f0162d230b0c2 (diff) | |
| download | enigma2-aaf5b8aba767c60f84b74caf02da21c1f0272223.tar.gz enigma2-aaf5b8aba767c60f84b74caf02da21c1f0272223.zip | |
make setTitle work by using onShown
Diffstat (limited to 'lib/python/Screens/PluginBrowser.py')
| -rw-r--r-- | lib/python/Screens/PluginBrowser.py | 11 |
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") |
