git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make setTitle work by using onShown
[enigma2.git]
/
lib
/
python
/
Screens
/
PluginBrowser.py
diff --git
a/lib/python/Screens/PluginBrowser.py
b/lib/python/Screens/PluginBrowser.py
index adec1b6b896a9481e67949e5f9fa4927e04c8be4..3dd49a69cd59a6f48208e16e875ca7b654b43c2c 100644
(file)
--- 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.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)
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]])
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):
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")
self["list"].instance.hide()
self.container.execute("ipkg update")