mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 13:22:55 +08:00
Move score nulling out of loading property
This commit is contained in:
parent
a49bde7ed3
commit
cc9ee472d6
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user