mirror of
https://github.com/osukey/osukey.git
synced 2025-05-03 04:37:30 +09: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();
|
addedInfo |= addSeedingBeatmaps();
|
||||||
|
|
||||||
if (addedInfo)
|
if (addedInfo)
|
||||||
SaveChanges();
|
saveChanges();
|
||||||
|
|
||||||
ladder.CurrentMatch.Value = ladder.Matches.FirstOrDefault(p => p.Current.Value);
|
ladder.CurrentMatch.Value = ladder.Matches.FirstOrDefault(p => p.Current.Value);
|
||||||
}
|
}
|
||||||
@ -306,6 +306,11 @@ namespace osu.Game.Tournament
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
saveChanges();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void saveChanges()
|
||||||
|
{
|
||||||
foreach (var r in ladder.Rounds)
|
foreach (var r in ladder.Rounds)
|
||||||
r.Matches = ladder.Matches.Where(p => p.Round.Value == r).Select(p => p.ID).ToList();
|
r.Matches = ladder.Matches.Where(p => p.Round.Value == r).Select(p => p.ID).ToList();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user