diff options
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/PluginComponent.py | 1 | ||||
| -rw-r--r-- | lib/python/Components/PluginList.py | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index bd8a6d07..eeb2c974 100644 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -56,6 +56,7 @@ class PluginComponent: plugins = [ plugins ] for p in plugins: + p.updateIcon(path) self.addPlugin(p); def getPlugins(self, where): diff --git a/lib/python/Components/PluginList.py b/lib/python/Components/PluginList.py index a8493497..b9b5bcc7 100644 --- a/lib/python/Components/PluginList.py +++ b/lib/python/Components/PluginList.py @@ -22,10 +22,10 @@ def PluginEntryComponent(plugin): res.append((eListboxPythonMultiContent.TYPE_TEXT, 80, 5, 300, 25, 0, RT_HALIGN_LEFT, plugin.name)) res.append((eListboxPythonMultiContent.TYPE_TEXT, 80, 26, 300, 17, 1, RT_HALIGN_LEFT, plugin.description)) -# png = loadPNG(picture) -# if png == None: - - png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "/plugin.png")) + if plugin.icon is None: + png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "/plugin.png")) + else: + png = plugin.icon res.append((eListboxPythonMultiContent.TYPE_PIXMAP, 10, 5, 60, 40, png)) return res |
