Skip to content

Commit

Permalink
Move naming to event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Garulf committed Jan 25, 2024
1 parent 97dfc8f commit 02439d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyflowlauncher/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ def __init__(self, methods: list[Method] | None = None) -> None:

def add_method(self, method: Method) -> None:
"""Add a method to the event handler."""
name = getattr(method, '__name__', method.__class__.__name__).lower()
self._logger.debug(f"Adding method: '{name}'")
self._event_handler.add_method(method, name=name)
self._event_handler.add_method(method)

def add_methods(self, methods: Iterable[Method]) -> None:
self._event_handler.add_methods(methods)
Expand Down

0 comments on commit 02439d4

Please sign in to comment.