mirror of
https://github.com/ppy/osu
synced 2025-02-22 13:37:08 +00:00
Simplify logic
This commit is contained in:
parent
2df279f902
commit
2a94b68ecb
@ -127,19 +127,15 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
|
||||
private void getScores(BeatmapInfo beatmap)
|
||||
{
|
||||
loadingAnimation.Show();
|
||||
|
||||
getScoresRequest?.Cancel();
|
||||
getScoresRequest = null;
|
||||
|
||||
Scores = null;
|
||||
|
||||
if (beatmap?.OnlineBeatmapID.HasValue != true)
|
||||
{
|
||||
loadingAnimation.Hide();
|
||||
return;
|
||||
}
|
||||
|
||||
loadingAnimation.Show();
|
||||
getScoresRequest = new GetScoresRequest(beatmap, beatmap.Ruleset);
|
||||
getScoresRequest.Success += scores =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user