mirror of https://github.com/ppy/osu
Move online id null check to only bypass metrics lookup
This commit is contained in:
parent
e5e454ddcd
commit
054db48089
|
@ -175,7 +175,7 @@ protected override void UpdateAfterChildren()
|
|||
|
||||
private void updateStatistics()
|
||||
{
|
||||
if (Beatmap?.OnlineBeatmapID == null)
|
||||
if (Beatmap == null)
|
||||
{
|
||||
clearStats();
|
||||
return;
|
||||
|
@ -188,7 +188,7 @@ private void updateStatistics()
|
|||
tags.Text = Beatmap.Metadata.Tags;
|
||||
|
||||
var requestedBeatmap = Beatmap;
|
||||
if (requestedBeatmap.Metrics == null)
|
||||
if (requestedBeatmap.Metrics == null && requestedBeatmap.OnlineBeatmapID != null)
|
||||
{
|
||||
var lookup = new GetBeatmapDetailsRequest(requestedBeatmap);
|
||||
lookup.Success += res =>
|
||||
|
|
Loading…
Reference in New Issue