- self.session.openWithCallback(self.installFinished, Console, ["ipkg install " + self.pluginlist[self["list"].l.getCurrentSelectionIndex()][0]])
+ if self.type == self.DOWNLOAD:
+ self.session.openWithCallback(self.installFinished, Console, ["ipkg install " + self.pluginlist[self["list"].l.getCurrentSelectionIndex()][0]])
+ elif self.type == self.REMOVE:
+ self.session.openWithCallback(self.installFinished, Console, ["ipkg remove " + self.pluginlist[self["list"].l.getCurrentSelectionIndex()][0]])
+
+ def setTitle(self):
+ if self.type == self.DOWNLOAD:
+ self.session.currentDialog.instance.setTitle(_("Downloadable new plugins"))
+ elif self.type == self.REMOVE:
+ self.session.currentDialog.instance.setTitle(_("Remove plugins"))