X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d120b13dd6d9460fc9a66680ffb42632cb597522..41c6536e584c5102d78245e1ffbbe45f19d701fc:/lib/python/Plugins/Plugin.py diff --git a/lib/python/Plugins/Plugin.py b/lib/python/Plugins/Plugin.py index 183419c7..3db70397 100644 --- a/lib/python/Plugins/Plugin.py +++ b/lib/python/Plugins/Plugin.py @@ -34,7 +34,11 @@ class PluginDescriptor: self.where = [ where ] self.description = description - self.iconstr = icon + if type(icon) is str or icon is None: + self.iconstr = icon + self.icon = None + else: + self.icon = icon self.__call__ = fnc @@ -42,4 +46,7 @@ class PluginDescriptor: if type(self.iconstr) is str: self.icon = loadPNG(path + self.iconstr) else: - self.icon = None \ No newline at end of file + self.icon = None + + def __eq__(self, other): + return self.__call__ == other.__call__