Move online id null check to only bypass metrics lookup

This commit is contained in:
Jamie Taylor 2019-03-07 16:59:43 +09:00
parent e5e454ddcd
commit 054db48089
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C
1 changed files with 2 additions and 2 deletions

View File

@ -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 =>