mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-29 20:56:31 +00:00
Renamed plugin's event handling method to 'handle_events'.
This commit is contained in:
parent
1eed8f34d9
commit
cbbce338f9
@ -98,9 +98,9 @@ class PluginManager:
|
||||
plugin = self.enabled_plugins[name]
|
||||
if 'update' in dir(plugin):
|
||||
plugin.update()
|
||||
|
||||
if 'notify' in dir(plugin):
|
||||
plugin.notify(events)
|
||||
print events
|
||||
if 'handle_events' in dir(plugin):
|
||||
plugin.handle_events(events)
|
||||
|
||||
def shutdown_all_plugins(self):
|
||||
for name in self.enabled_plugins.keys():
|
||||
|
Loading…
x
Reference in New Issue
Block a user