Skip to content

Commit

Permalink
moves the title name in CommonContext.run_gui into a parameter defaul…
Browse files Browse the repository at this point in the history
…ted to the normal default so others using it don't have to rewrite everything
  • Loading branch information
qwint committed May 13, 2024
1 parent af83050 commit 04d9a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CommonClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,15 +585,15 @@ 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

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")
Expand Down

0 comments on commit 04d9a87

Please sign in to comment.