Skip to content

Commit

Permalink
fixes url launched popup so it can close cleanly after spawning anoth…
Browse files Browse the repository at this point in the history
…er kivy app like text client
  • Loading branch information
qwint committed Nov 19, 2024
1 parent 85a7137 commit d775478
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ def update_label(self, dt):
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()


Expand Down Expand Up @@ -416,7 +421,7 @@ def main(args: Optional[Union[argparse.Namespace, dict]] = None):
run_group.add_argument("args", nargs="*",
help="Arguments to pass to component.")
main(parser.parse_args())

breakpoint()
from worlds.LauncherComponents import processes
for process in processes:
# we await all child processes to close before we tear down the process host
Expand Down

0 comments on commit d775478

Please sign in to comment.