mirror of https://github.com/ppy/osu
Fix old maps not getting cleared when switching matches
This commit is contained in:
parent
6ff29c1ea4
commit
ee6263f395
|
@ -180,12 +180,17 @@ private void addForBeatmap(int beatmapId)
|
|||
|
||||
private void matchChanged(MatchPairing match)
|
||||
{
|
||||
foreach (var b in match.Grouping.Value.Beatmaps)
|
||||
maps.Add(new TournamentBeatmapPanel(b.BeatmapInfo)
|
||||
{
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
});
|
||||
maps.Clear();
|
||||
|
||||
if (match.Grouping.Value != null)
|
||||
{
|
||||
foreach (var b in match.Grouping.Value.Beatmaps)
|
||||
maps.Add(new TournamentBeatmapPanel(b.BeatmapInfo)
|
||||
{
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue