1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 13:42:59 +08:00

Clear table if no scores are provided

This commit is contained in:
smoogipoo 2019-04-03 16:09:34 +09:00
parent 2c18b6df1c
commit e246fad301

View File

@ -52,6 +52,9 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
{
set
{
scoresGrid.Content = new Drawable[0][];
backgroundFlow.Clear();
if (value == null || !value.Any())
return;
@ -60,8 +63,6 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
new ScoreTableHeaderRow(value.First()).CreateDrawables().ToArray()
};
backgroundFlow.Clear();
for (int i = 0; i < value.Count; i++)
{
content.Add(new ScoreTableScoreRow(i, value[i]).CreateDrawables().ToArray());