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

Move score nulling out of loading property

This commit is contained in:
Dean Herbert 2019-07-11 11:07:30 +09:00
parent a49bde7ed3
commit cc9ee472d6

View File

@ -114,13 +114,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
private bool loading
{
set
{
loadingAnimation.FadeTo(value ? 1 : 0, fade_duration);
if (value)
Scores = null;
}
set => loadingAnimation.FadeTo(value ? 1 : 0, fade_duration);
}
private void getScores(BeatmapInfo beatmap)
@ -128,11 +122,10 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
getScoresRequest?.Cancel();
getScoresRequest = null;
Scores = null;
if (beatmap?.OnlineBeatmapID.HasValue != true)
{
Scores = null;
return;
}
loading = true;