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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

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()