set title after layout is finished (doesn't work)
[enigma2.git] / lib / python / Screens / PluginBrowser.py
index c0e85c8..86f4a6b 100644 (file)
@@ -74,10 +74,8 @@ class PluginDownloadBrowser(Screen):
                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.session.currentDialog.instance.setTitle(_("Remove plugins"))
                        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):
+               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")