1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

fix weird handling of dialogOverlay in tourney client

This commit is contained in:
Dao Heng Liu 2023-07-20 22:47:29 +01:00
parent fa480cc27b
commit 3c05246baf

View File

@ -43,7 +43,6 @@ namespace osu.Game.Tournament
private readonly DialogOverlay dialogOverlay = new DialogOverlay();
private DependencyContainer dependencies;
private Container topMostOverlayContent;
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent) =>
dependencies = new DependencyContainer(base.CreateChildDependencies(parent));
@ -102,13 +101,11 @@ namespace osu.Game.Tournament
RelativeSizeAxes = Axes.Both,
Child = new TournamentSceneManager()
},
topMostOverlayContent = new Container { RelativeSizeAxes = Axes.Both }
new Container { RelativeSizeAxes = Axes.Both, Child = dialogOverlay }
}, drawables =>
{
loadingSpinner.Hide();
loadingSpinner.Expire();
topMostOverlayContent.Add(dialogOverlay);
AddRange(drawables);
windowSize.BindValueChanged(size => ScheduleAfterChildren(() =>