mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Fix tournament client not saving changes after populating new data
This commit is contained in:
parent
3f2077a527
commit
68636aeaaa
@ -156,7 +156,7 @@ namespace osu.Game.Tournament
|
||||
addedInfo |= addSeedingBeatmaps();
|
||||
|
||||
if (addedInfo)
|
||||
SaveChanges();
|
||||
saveChanges();
|
||||
|
||||
ladder.CurrentMatch.Value = ladder.Matches.FirstOrDefault(p => p.Current.Value);
|
||||
}
|
||||
@ -306,6 +306,11 @@ namespace osu.Game.Tournament
|
||||
return;
|
||||
}
|
||||
|
||||
saveChanges();
|
||||
}
|
||||
|
||||
private void saveChanges()
|
||||
{
|
||||
foreach (var r in ladder.Rounds)
|
||||
r.Matches = ladder.Matches.Where(p => p.Round.Value == r).Select(p => p.ID).ToList();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user