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:
parent
2c18b6df1c
commit
e246fad301
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user