mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-26 08:53:32 +08:00
Fixed a bug
This commit is contained in:
parent
dbb86f33d8
commit
16a89ffcf8
@ -453,6 +453,12 @@ class MainMenuActivity(ba.Activity[ba.Player, ba.Team]):
|
||||
ba.app.ui.set_main_menu_window(
|
||||
CoopBrowserWindow(
|
||||
transition=None).get_root_widget())
|
||||
elif main_menu_location == 'Benchmarks & Stress Tests':
|
||||
# pylint: disable=cyclic-import
|
||||
from bastd.ui.debug import DebugWindow
|
||||
ba.app.ui.set_main_menu_window(
|
||||
DebugWindow(
|
||||
transition=None).get_root_widget())
|
||||
else:
|
||||
# pylint: disable=cyclic-import
|
||||
from bastd.ui.mainmenu import MainMenuWindow
|
||||
|
||||
@ -20,6 +20,7 @@ class DebugWindow(ba.Window):
|
||||
# pylint: disable=cyclic-import
|
||||
from bastd.ui import popup
|
||||
|
||||
ba.app.ui.set_main_menu_location('Benchmarks & Stress Tests')
|
||||
uiscale = ba.app.ui.uiscale
|
||||
self._width = width = 580
|
||||
self._height = height = (350 if uiscale is ba.UIScale.SMALL else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user