X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/defadb893d6897935165b63a9de09b95f43dfcc1..5c3eb71d77a7c37ef29abaf9a578545d25171e41:/lib/python/Plugins/Plugin.py diff --git a/lib/python/Plugins/Plugin.py b/lib/python/Plugins/Plugin.py index 7cf0c18b..d87e6e96 100755 --- a/lib/python/Plugins/Plugin.py +++ b/lib/python/Plugins/Plugin.py @@ -60,9 +60,12 @@ class PluginDescriptor: # should be provided to name and describe the new menu entry. WHERE_SOFTWAREMANAGER = 14 - def __init__(self, name = "Plugin", where = [ ], description = "", icon = None, fnc = None, wakeupfnc = None, internal = False): + + def __init__(self, name = "Plugin", where = [ ], description = "", icon = None, fnc = None, wakeupfnc = None, needsRestart = None, internal = False, weight = 0): self.name = name self.internal = internal + self.needsRestart = needsRestart + self.path = None if isinstance(where, list): self.where = where else: @@ -75,6 +78,8 @@ class PluginDescriptor: else: self.icon = icon + self.weight = weight + self.wakeupfnc = wakeupfnc self.__call__ = fnc