set title after layout is finished (doesn't work)
[enigma2.git] / lib / python / Screens / PluginBrowser.py
index c0e85c87ad5c13338251796e988be17d468ffe44..86f4a6b97c9c23b8f75a7768c1d3c7377ff41394 100644 (file)
@@ -74,10 +74,8 @@ class PluginDownloadBrowser(Screen):
                self.pluginlist = []
                
                if self.type == self.DOWNLOAD:
                self.pluginlist = []
                
                if self.type == self.DOWNLOAD:
-                       self.session.currentDialog.instance.setTitle(_("Downloadale new plugins"))
                        self["text"] = Label(_("Downloading plugin information. Please wait..."))
                elif self.type == self.REMOVE:
                        self["text"] = Label(_("Downloading plugin information. Please wait..."))
                elif self.type == self.REMOVE:
-                       self.session.currentDialog.instance.setTitle(_("Remove plugins"))
                        self["text"] = Label(_("Getting plugin information. Please wait..."))
                
                self.run = 0
                        self["text"] = Label(_("Getting plugin information. Please wait..."))
                
                self.run = 0
@@ -103,6 +101,10 @@ class PluginDownloadBrowser(Screen):
                                self.session.openWithCallback(self.installFinished, Console, ["ipkg remove " + self.pluginlist[self["list"].l.getCurrentSelectionIndex()][0]])
 
        def startRun(self):
                                self.session.openWithCallback(self.installFinished, Console, ["ipkg remove " + self.pluginlist[self["list"].l.getCurrentSelectionIndex()][0]])
 
        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")