Fix dialog overlay potentially pushing dialog while not loaded

This commit is contained in:
Salman Ahmed
2022-07-14 06:05:03 +03:00
parent b511c9cc3f
commit f83d413b33

View File

@ -65,7 +65,7 @@ namespace osu.Game.Overlays
dialogContainer.Add(dialog); dialogContainer.Add(dialog);
Show(); Show();
}, false); }, !IsLoaded);
} }
public override bool IsPresent => Scheduler.HasPendingTasks || dialogContainer.Children.Count > 0; public override bool IsPresent => Scheduler.HasPendingTasks || dialogContainer.Children.Count > 0;