diff --git a/dooit/ui/api/plug.py b/dooit/ui/api/plug.py index a135e5dc..aa46094f 100644 --- a/dooit/ui/api/plug.py +++ b/dooit/ui/api/plug.py @@ -47,7 +47,7 @@ def _update_dooit_value(self, obj, *params): def on_event(self, event: DooitEvent): matched_events = [ - e for e in self.events.keys() if issubclass(e, event.__class__) + e for e in self.events.keys() if issubclass(event.__class__, e) ] for e in matched_events: