X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/cadcfec58b20ce4a11c883d374aab5f4cdfbbe6d..fcea714ed304234bdb7e05e40c3e3d7109fbd1f1:/lib/python/Screens/PluginBrowser.py diff --git a/lib/python/Screens/PluginBrowser.py b/lib/python/Screens/PluginBrowser.py index afc283d5..f5d0c8a1 100644 --- a/lib/python/Screens/PluginBrowser.py +++ b/lib/python/Screens/PluginBrowser.py @@ -31,7 +31,16 @@ class PluginBrowser(Screen): "red": self.delete, "green": self.download }) - + self.onExecBegin.append(self.checkWarnings) + + 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) + def save(self): #self.close() self.run()