git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
properly unload old plugins and load new plugins
[enigma2.git]
/
lib
/
python
/
Plugins
/
Plugin.py
diff --git
a/lib/python/Plugins/Plugin.py
b/lib/python/Plugins/Plugin.py
index 183419c7fe90d357b83574963f3767ed78b73b6a..4b5b7e2a8d062bbdede1a78619a5c323787d276a 100644
(file)
--- a/
lib/python/Plugins/Plugin.py
+++ b/
lib/python/Plugins/Plugin.py
@@
-35,6
+35,7
@@
class PluginDescriptor:
self.description = description
self.iconstr = icon
self.description = description
self.iconstr = icon
+ self.icon = None
self.__call__ = fnc
self.__call__ = fnc
@@
-42,4
+43,7
@@
class PluginDescriptor:
if type(self.iconstr) is str:
self.icon = loadPNG(path + self.iconstr)
else:
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__