set title after layout is finished (doesn't work)
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 23 Feb 2006 00:56:07 +0000 (00:56 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 23 Feb 2006 00:56:07 +0000 (00:56 +0000)
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.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")