1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 14:02:55 +08:00

Fix critical failure causing scores to not update on the leaderboard

This commit is contained in:
Dean Herbert 2021-07-06 01:15:30 +09:00
parent 0253d753af
commit f5ddd2a53b

View File

@ -71,11 +71,19 @@ namespace osu.Game.Screens.Play.HUD
UserScores[user.Id] = trackedUser; UserScores[user.Id] = trackedUser;
} }
prepareDataStreams();
})); }));
} }
protected override void LoadComplete()
{
base.LoadComplete();
// this is *required* to be here due to the spectator leaderboard not correctly populating clocks if done later.
// note that running this here is probably not 100% correct (if a user quits before user population occurs for instance,
// an incorrect state will be reached).
prepareDataStreams();
}
private void prepareDataStreams() private void prepareDataStreams()
{ {
// BindableList handles binding in a really bad way (Clear then AddRange) so we need to do this manually.. // BindableList handles binding in a really bad way (Clear then AddRange) so we need to do this manually..