git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove bad words (and characters)
[enigma2.git]
/
lib
/
python
/
Plugins
/
Plugin.py
diff --git
a/lib/python/Plugins/Plugin.py
b/lib/python/Plugins/Plugin.py
index bfa8509addcc7980cf8eea89c1ee5c6a44271eb7..3db703979cc622e281d34f2de4003d2852a7efa5 100644
(file)
--- 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.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
self.__call__ = fnc
@@
-43,3
+47,6
@@
class PluginDescriptor:
self.icon = loadPNG(path + self.iconstr)
else:
self.icon = None
self.icon = loadPNG(path + self.iconstr)
else:
self.icon = None
+
+ def __eq__(self, other):
+ return self.__call__ == other.__call__