diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-08-01 17:01:16 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-08-01 17:01:16 +0200 |
commit | 77c7afff0fb6d89911a5ec2ca5751cdb266698db (patch) | |
tree | ba3201505586889e44a7e5a234e058763341951c /module/plugins/hooks/UpdateManager.py | |
parent | Store all re.search/match object as "m" instead "found" (diff) | |
download | pyload-77c7afff0fb6d89911a5ec2ca5751cdb266698db.tar.xz |
[UpdateManager] Disable reloadplugins schedule on plugin deactivation
Diffstat (limited to 'module/plugins/hooks/UpdateManager.py')
-rw-r--r-- | module/plugins/hooks/UpdateManager.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py index 6ed756d13..5f71ad6fa 100644 --- a/module/plugins/hooks/UpdateManager.py +++ b/module/plugins/hooks/UpdateManager.py @@ -15,8 +15,8 @@ from module.utils import save_join class UpdateManager(Hook): __name__ = "UpdateManager" - __version__ = "0.33" __type__ = "hook" + __version__ = "0.34" __config__ = [("activated", "bool", "Activated", True), ("mode", "pyLoad + plugins;plugins only", "Check updates for", "pyLoad + plugins"), @@ -53,6 +53,9 @@ class UpdateManager(Hook): self.pluginConfigChanged(self.__name__, "interval", self.getConfig("interval")) self.pluginConfigChanged(self.__name__, "reloadplugins", self.getConfig("reloadplugins")) + def unload(self): + self.pluginConfigChanged(self.__name__, "reloadplugins", False) + def setup(self): self.scheduler = self.core.scheduler self.cb2 = None @@ -181,7 +184,7 @@ class UpdateManager(Hook): newver = float(version) if not oldver: - msg = "New version of [%(type)s] %(name)s (v%(newver)s)" + msg = "New [%(type)s] %(name)s (v%(newver)s)" elif newver > oldver: msg = "New version of [%(type)s] %(name)s (v%(oldver)s -> v%(newver)s)" else: |