Fix Event.dispatch to return True if execution is to proceed
This commit is contained in:
parent
28dc0a8e14
commit
81e3e688ab
@ -24,7 +24,7 @@ class Event:
|
|||||||
|
|
||||||
def dispatch(self, *args):
|
def dispatch(self, *args):
|
||||||
if self.name not in EVENT_CALLBACKS:
|
if self.name not in EVENT_CALLBACKS:
|
||||||
return
|
return True
|
||||||
|
|
||||||
for item in list(EVENT_CALLBACKS[self.name]):
|
for item in list(EVENT_CALLBACKS[self.name]):
|
||||||
item[1](self, *args)
|
item[1](self, *args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user