From 04d9a8756770f5211150828d72b01e60bc80736e Mon Sep 17 00:00:00 2001 From: qwint Date: Mon, 13 May 2024 12:52:06 -0500 Subject: [PATCH] moves the title name in CommonContext.run_gui into a parameter defaulted to the normal default so others using it don't have to rewrite everything --- CommonClient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CommonClient.py b/CommonClient.py index 63cac098e22a..b0a904d9b588 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -585,7 +585,7 @@ def handle_connection_loss(self, msg: str) -> None: logger.exception(msg, exc_info=exc_info, extra={'compact_gui': True}) self._messagebox_connection_loss = self.gui_error(msg, exc_info[1]) - def run_gui(self): + def run_gui(self, title="Archipelago Text Client"): """Import kivy UI system and start running it as self.ui_task.""" from kvui import GameManager @@ -593,7 +593,7 @@ class TextManager(GameManager): logging_pairs = [ ("Client", "Archipelago") ] - base_title = "Archipelago Text Client" + base_title = title self.ui = TextManager(self) self.ui_task = asyncio.create_task(self.ui.async_run(), name="UI")