properly unload old plugins and load new plugins
[vuplus_dvbapp] / lib / python / Plugins / Plugin.py
index bfa8509..4b5b7e2 100644 (file)
@@ -35,6 +35,7 @@ class PluginDescriptor:
                self.description = description
 
                self.iconstr = icon
+               self.icon = None
 
                self.__call__ = fnc
 
@@ -43,3 +44,6 @@ class PluginDescriptor:
                        self.icon = loadPNG(path + self.iconstr)
                else:
                        self.icon = None
+
+       def __eq__(self, other):
+               return self.__call__ == other.__call__