From 7ad11b91da0a8479487123716866587ec7f66f96 Mon Sep 17 00:00:00 2001 From: Loup-Garou911XD <90267658+Loup-Garou911XD@users.noreply.github.com> Date: Sun, 4 Jan 2026 18:57:23 +0530 Subject: [PATCH] update character chooser to fix #411 --- plugins/utilities.json | 3 ++- plugins/utilities/character_chooser.py | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/utilities.json b/plugins/utilities.json index 34ec19f..43fe499 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -1244,6 +1244,7 @@ } ], "versions": { + "2.2.2": null, "2.2.1": { "api_version": 9, "commit_sha": "e604a3c", @@ -2340,4 +2341,4 @@ } } } -} \ No newline at end of file +} diff --git a/plugins/utilities/character_chooser.py b/plugins/utilities/character_chooser.py index 502672c..e0f0edf 100644 --- a/plugins/utilities/character_chooser.py +++ b/plugins/utilities/character_chooser.py @@ -154,15 +154,13 @@ def __init__(self, vpos: float, sessionplayer: bs.SessionPlayer, def _set_ready(self, ready: bool) -> None: # pylint: disable=cyclic-import - from bauiv1lib.profile import browser as pbrowser from babase._general import Call profilename = self._profilenames[self._profileindex] # Handle '_edit' as a special case. if profilename == '_edit' and ready: with _babase.Context('ui'): - pbrowser.ProfileBrowserWindow(in_main_menu=False) - + babase.app.classic.profile_browser_window() # Give their input-device UI ownership too # (prevent someone else from snatching it in crowded games) _babase.set_ui_input_device(self._sessionplayer.inputdevice)