summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/UpdateManager.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-18 13:34:09 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-18 13:34:09 +0100
commit80a5bc01bd854ba0ba80dccd7f1ca8f488be9112 (patch)
treeb21f66f21044e95c69dd92ccda0af864a22b5a66 /module/plugins/hooks/UpdateManager.py
parent[UploadingCom] Account fixup (diff)
downloadpyload-80a5bc01bd854ba0ba80dccd7f1ca8f488be9112.tar.xz
[UpdateManager] Dispatch Event on plugins update
Diffstat (limited to 'module/plugins/hooks/UpdateManager.py')
-rw-r--r--module/plugins/hooks/UpdateManager.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py
index c435d38b2..27d976f17 100644
--- a/module/plugins/hooks/UpdateManager.py
+++ b/module/plugins/hooks/UpdateManager.py
@@ -28,7 +28,7 @@ def exists(path):
class UpdateManager(Hook):
__name__ = "UpdateManager"
__type__ = "hook"
- __version__ = "0.45"
+ __version__ = "0.46"
__config__ = [("activated" , "bool" , "Activated" , True ),
("mode" , "pyLoad + plugins;plugins only", "Check updates for" , "pyLoad + plugins"),
@@ -276,6 +276,8 @@ class UpdateManager(Hook):
self.logInfo(_("*** Plugins have been updated, but need a pyLoad restart to be reloaded ***"))
self.info['plugins'] = True
exitcode = 2
+
+ self.manager.dispatchEvent("plugin_updated", updated)
else:
self.logInfo(_("No plugin updates available"))