1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Dispose container before replacing

This commit is contained in:
Henry Lin 2022-02-02 17:32:16 +08:00
parent 042574660c
commit 36bfef4f54

View File

@ -143,6 +143,7 @@ namespace osu.Game.Screens.Ranking.Statistics
if (panelIsEmpty)
{
// Replace the scroll container with fill flow container to get the message centered.
container.Dispose();
container = new FillFlowContainer
{
RelativeSizeAxes = Axes.Both,