Change DownloadState only when Download is possible

This commit is contained in:
Paul Teng
2018-10-18 08:51:05 -04:00
parent c4a1c466bc
commit 86b29064c6
2 changed files with 9 additions and 6 deletions

View File

@ -71,9 +71,10 @@ namespace osu.Game.Beatmaps.Drawables
if (DownloadState.Value > DownloadStatus.NotDownloaded)
return;
beatmaps.Download(set, noVideo);
DownloadState.Value = DownloadStatus.Downloading;
if (beatmaps.Download(set, noVideo)) {
// Only change state if download can happen
DownloadState.Value = DownloadStatus.Downloading;
}
}
private void setAdded(BeatmapSetInfo s)