diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-11-30 02:03:37 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-11-30 02:03:37 +0000 |
| commit | aaa2366d5a85764feb76a1615a6c557a75c82894 (patch) | |
| tree | 5af8045244d961f7f6cc8146d52004d1154bfeef /lib/python/Screens/PluginBrowser.py | |
| parent | e0dd30639b505195118ecb26c3fb2f0aad88192f (diff) | |
| download | enigma2-aaa2366d5a85764feb76a1615a6c557a75c82894.tar.gz enigma2-aaa2366d5a85764feb76a1615a6c557a75c82894.zip | |
show plugin warnings
Diffstat (limited to 'lib/python/Screens/PluginBrowser.py')
| -rw-r--r-- | lib/python/Screens/PluginBrowser.py | 11 |
1 files changed, 10 insertions, 1 deletions
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() |
