Launcher: ports the _stop fix in the Launcher kivy App to handle_url Popup App (#4213)

* fixes url launched popup so it can close cleanly after spawning another kivy app like text client

* whoops
This commit is contained in:
qwint
2024-11-21 11:43:01 -05:00
committed by GitHub
parent 124ce13da7
commit 859ae87ec9

View File

@@ -181,6 +181,11 @@ def handle_uri(path: str, launch_args: Tuple[str, ...]) -> None:
App.get_running_app().stop()
Window.close()
def _stop(self, *largs):
# see run_gui Launcher _stop comment for details
self.root_window.close()
super()._stop(*largs)
Popup().run()