From 02439d4845fe93c956860ef06484d2b920c51ea4 Mon Sep 17 00:00:00 2001 From: Garulf <535299+Garulf@users.noreply.github.com> Date: Thu, 25 Jan 2024 12:27:05 -0500 Subject: [PATCH] Move naming to event handler --- pyflowlauncher/plugin.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyflowlauncher/plugin.py b/pyflowlauncher/plugin.py index 1134b47..3f4859b 100644 --- a/pyflowlauncher/plugin.py +++ b/pyflowlauncher/plugin.py @@ -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)