1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 10:42:54 +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 private bool loading
{ {
set set => loadingAnimation.FadeTo(value ? 1 : 0, fade_duration);
{
loadingAnimation.FadeTo(value ? 1 : 0, fade_duration);
if (value)
Scores = null;
}
} }
private void getScores(BeatmapInfo beatmap) private void getScores(BeatmapInfo beatmap)
@ -128,11 +122,10 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
getScoresRequest?.Cancel(); getScoresRequest?.Cancel();
getScoresRequest = null; getScoresRequest = null;
Scores = null;
if (beatmap?.OnlineBeatmapID.HasValue != true) if (beatmap?.OnlineBeatmapID.HasValue != true)
{
Scores = null;
return; return;
}
loading = true; loading = true;