mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Ensure Leaderboard.Scores
is updated immediately via request flow
This commit is contained in:
@ -148,13 +148,10 @@ namespace osu.Game.Screens.Select.Leaderboards
|
||||
|
||||
var req = new GetScoresRequest(fetchBeatmapInfo, fetchRuleset, Scope, requestMods);
|
||||
|
||||
req.Success += r => Schedule(() =>
|
||||
{
|
||||
SetScores(
|
||||
scoreManager.OrderByTotalScore(r.Scores.Select(s => s.ToScoreInfo(rulesets, fetchBeatmapInfo))),
|
||||
r.UserScore?.CreateScoreInfo(rulesets, fetchBeatmapInfo)
|
||||
);
|
||||
});
|
||||
req.Success += r => SetScores(
|
||||
scoreManager.OrderByTotalScore(r.Scores.Select(s => s.ToScoreInfo(rulesets, fetchBeatmapInfo))),
|
||||
r.UserScore?.CreateScoreInfo(rulesets, fetchBeatmapInfo)
|
||||
);
|
||||
|
||||
return req;
|
||||
}
|
||||
@ -209,7 +206,7 @@ namespace osu.Game.Screens.Select.Leaderboards
|
||||
|
||||
scores = scoreManager.OrderByTotalScore(scores.Detach());
|
||||
|
||||
Schedule(() => SetScores(scores));
|
||||
SetScores(scores);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user