properly unload old plugins and load new plugins
[enigma2.git] / lib / python / Screens / PluginBrowser.py
index 3dd49a69cd59a6f48208e16e875ca7b654b43c2c..99c0ac24d261267bbc8952c45d0e556229ae9b24 100644 (file)
@@ -103,7 +103,7 @@ class PluginDownloadBrowser(Screen):
 
        def setTitle(self):
                if self.type == self.DOWNLOAD:
-                       self.session.currentDialog.instance.setTitle(_("Downloadale new plugins"))
+                       self.session.currentDialog.instance.setTitle(_("Downloadable new plugins"))
                elif self.type == self.REMOVE:
                        self.session.currentDialog.instance.setTitle(_("Remove plugins"))
 
@@ -113,6 +113,7 @@ class PluginDownloadBrowser(Screen):
                
        def installFinished(self):
                plugins.readPluginList(resolveFilename(SCOPE_PLUGINS))
+               self.close()
                
        def runFinished(self, retval):
                if self.run == 0:
@@ -137,6 +138,7 @@ class PluginDownloadBrowser(Screen):
                                self.pluginlist.append(plugin)
        
        def updateList(self):
+               self.list = []
                for x in self.pluginlist:
                        plugin = PluginDescriptor(name = x[3], description = x[2])
                        self.list.append(PluginEntryComponent(plugin))