Skip to content

Commit

Permalink
fix: detect super events
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Nov 8, 2024
1 parent 6f1eed7 commit 3c4c289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dooit/ui/api/plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3c4c289

Please sign in to comment.