Fix module load and reload
This commit is contained in:
parent
63cc770800
commit
fd5fbf6c6c
3 changed files with 19 additions and 7 deletions
|
|
@ -62,9 +62,9 @@ class HooksManager:
|
|||
if trigger in self.hooks:
|
||||
if hook is None:
|
||||
del self.hooks[trigger]
|
||||
return True
|
||||
else:
|
||||
return self.hooks[trigger].remove(hook)
|
||||
self.hooks[trigger].remove(hook)
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue