mirror of
https://github.com/ppy/osu.git
synced 2025-03-18 06:27:18 +08: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…
x
Reference in New Issue
Block a user