aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-23 00:22:33 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-23 00:22:33 +0000
commitdfc3142e629d32e1f5efa380e777f711dc0fe92c (patch)
treea44bd2f8f5aa83d30a6860a1a7ad5bb16b427183 /lib/python
parent4b0a216bcf413989b5a7e6c1ad0275247fabca9c (diff)
downloadenigma2-dfc3142e629d32e1f5efa380e777f711dc0fe92c.tar.gz
enigma2-dfc3142e629d32e1f5efa380e777f711dc0fe92c.zip
update pluginlist after downloading a plugin
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/PluginBrowser.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/python/Screens/PluginBrowser.py b/lib/python/Screens/PluginBrowser.py
index 67aac076..429163ee 100644
--- a/lib/python/Screens/PluginBrowser.py
+++ b/lib/python/Screens/PluginBrowser.py
@@ -11,6 +11,7 @@ from Components.Label import Label
from Screens.MessageBox import MessageBox
from Screens.Console import Console
from Plugins.Plugin import PluginDescriptor
+from Tools.Directories import resolveFilename, SCOPE_PLUGINS
class PluginBrowser(Screen):
def __init__(self, session):
@@ -52,7 +53,7 @@ class PluginBrowser(Screen):
pass
def download(self):
- self.session.open(PluginDownloadBrowser)
+ self.session.openWithCallback(self.updateList, PluginDownloadBrowser)
class PluginDownloadBrowser(Screen):
def __init__(self, session):
@@ -83,12 +84,15 @@ class PluginDownloadBrowser(Screen):
def runInstall(self, val):
if val:
- self.session.open(Console, ["ipkg install " + self.pluginlist[self["list"].l.getCurrentSelectionIndex()][0]])
+ self.session.openWithCallback(self.installFinished, Console, ["ipkg install " + self.pluginlist[self["list"].l.getCurrentSelectionIndex()][0]])
def startRun(self):
self["list"].instance.hide()
self.container.execute("ipkg update")
+ def installFinished(self):
+ plugins.readPluginList(resolveFilename(SCOPE_PLUGINS))
+
def runFinished(self, retval):
if self.run == 0:
self.run = 1