Merge pull request #412 from bombsquad-community/character_chooser_fix

update character chooser to fix #411
This commit is contained in:
Loup 2026-01-05 00:29:55 +05:30 committed by GitHub
commit db4d7b8a13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -1244,6 +1244,12 @@
}
],
"versions": {
"2.2.2": {
"api_version": 9,
"commit_sha": "7ad11b9",
"released_on": "04-01-2026",
"md5sum": "c7fb5f1c2be9ef3b1fd35177c434dc34"
},
"2.2.1": {
"api_version": 9,
"commit_sha": "e604a3c",

View file

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