mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
Renamed plugin's event handling method to 'handle_events'.
This commit is contained in:
parent
1eed8f34d9
commit
cbbce338f9
1 changed files with 3 additions and 3 deletions
|
@ -98,9 +98,9 @@ class PluginManager:
|
||||||
plugin = self.enabled_plugins[name]
|
plugin = self.enabled_plugins[name]
|
||||||
if 'update' in dir(plugin):
|
if 'update' in dir(plugin):
|
||||||
plugin.update()
|
plugin.update()
|
||||||
|
print events
|
||||||
if 'notify' in dir(plugin):
|
if 'handle_events' in dir(plugin):
|
||||||
plugin.notify(events)
|
plugin.handle_events(events)
|
||||||
|
|
||||||
def shutdown_all_plugins(self):
|
def shutdown_all_plugins(self):
|
||||||
for name in self.enabled_plugins.keys():
|
for name in self.enabled_plugins.keys():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue