Show retrieval failure when OnlineBeatmapID is missing

This commit is contained in:
Dean Herbert 2017-12-21 03:10:09 +09:00
parent 85dee3abac
commit 2ff351c6cb
1 changed files with 8 additions and 1 deletions

View File

@ -191,7 +191,14 @@ protected virtual void UpdateScores()
Scores = null;
if (api == null || Beatmap?.OnlineBeatmapID == null) return;
if (api == null || Beatmap?.OnlineBeatmapID == null)
{
replacePlaceholder(new RetrievalFailurePlaceholder
{
OnRetry = UpdateScores,
});
return;
}
loading.Show();