mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Reduce isLoading calls
This commit is contained in:
@ -92,8 +92,6 @@ namespace osu.Game.Overlays
|
||||
|
||||
private void updateScores(BeatmapInfo beatmap)
|
||||
{
|
||||
scores.IsLoading = true;
|
||||
|
||||
getScoresRequest?.Cancel();
|
||||
|
||||
if (!beatmap.OnlineBeatmapID.HasValue)
|
||||
@ -102,9 +100,14 @@ namespace osu.Game.Overlays
|
||||
return;
|
||||
}
|
||||
|
||||
getScoresRequest = new GetScoresRequest(beatmap);
|
||||
getScoresRequest.Success += r => scores.Scores = r.Scores;
|
||||
scores.IsLoading = true;
|
||||
|
||||
getScoresRequest = new GetScoresRequest(beatmap);
|
||||
getScoresRequest.Success += r =>
|
||||
{
|
||||
scores.Scores = r.Scores;
|
||||
scores.IsLoading = false;
|
||||
};
|
||||
api.Queue(getScoresRequest);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user