+ self["SoftwareActions"] = ActionMap(["ColorActions"],
+ {
+ "red": self.openExtensionmanager
+ })
+ self["PluginDownloadActions"].setEnabled(False)
+ self["SoftwareActions"].setEnabled(False)
+ self.onFirstExecBegin.append(self.checkWarnings)
+ self.onShown.append(self.updateList)
+
+ def checkWarnings(self):
+ if len(plugins.warnings):
+ text = _("Some plugins are not available:\n")
+ for (pluginname, error) in plugins.warnings:
+ text += _("%s (%s)\n") % (pluginname, error)
+ plugins.resetWarnings()
+ self.session.open(MessageBox, text = text, type = MessageBox.TYPE_WARNING)
+