mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2026-08-15 13:03:08 +00:00
update character chooser to fix #411
This commit is contained in:
parent
f36fdfa09a
commit
7ad11b91da
2 changed files with 3 additions and 4 deletions
|
|
@ -1244,6 +1244,7 @@
|
|||
}
|
||||
],
|
||||
"versions": {
|
||||
"2.2.2": null,
|
||||
"2.2.1": {
|
||||
"api_version": 9,
|
||||
"commit_sha": "e604a3c",
|
||||
|
|
@ -2340,4 +2341,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue