Return existing download if it exists.

This commit is contained in:
naoey
2017-09-09 10:25:28 +05:30
parent 5f5dd54f9d
commit e67606e203
3 changed files with 12 additions and 5 deletions

View File

@ -160,13 +160,17 @@ namespace osu.Game.Overlays.Direct
}
// we already have an active download running.
if ((DownloadRequest = beatmaps.Download(SetInfo)) == null)
if (beatmaps.GetExistingDownload(SetInfo) != null)
{
content.MoveToX(-5, 50, Easing.OutSine).Then()
.MoveToX(5, 100, Easing.InOutSine).Then()
.MoveToX(-5, 100, Easing.InOutSine).Then()
.MoveToX(0, 50, Easing.InSine).Then();
return;
}
DownloadRequest = beatmaps.Download(SetInfo);
}
protected override void LoadComplete()