diff --git a/dooit/ui/tui.py b/dooit/ui/tui.py index d4b90d4a..f7a94b65 100644 --- a/dooit/ui/tui.py +++ b/dooit/ui/tui.py @@ -1,4 +1,3 @@ -import webbrowser from typing import Optional from textual import on from textual.app import App @@ -87,7 +86,7 @@ def global_message(self, event: DooitEvent): self.bar.refresh() @on(ShutDown) - def shutdown(self, event: ShutDown): + def shutdown(self, _: ShutDown): self.api.css.cleanup() @on(ModeChanged) @@ -104,7 +103,7 @@ async def quit_app(self): await self.action_quit() async def action_open_url(self, url: str) -> None: # pragma: no cover - webbrowser.open(url, new=2) + self.open_url(url) if __name__ == "__main__": # pragma: no cover