projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e0dd306
)
show plugin warnings
author
Felix Domke
<tmbinc@elitedvb.net>
Thu, 30 Nov 2006 02:03:37 +0000
(
02:03
+0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Thu, 30 Nov 2006 02:03:37 +0000
(
02:03
+0000)
lib/python/Screens/PluginBrowser.py
patch
|
blob
|
history
diff --git
a/lib/python/Screens/PluginBrowser.py
b/lib/python/Screens/PluginBrowser.py
index
afc283d
..
f5d0c8a
100644
(file)
--- 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()