1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Don't show error messages when a download is user-cancelled

Resolves #1941.
This commit is contained in:
Dean Herbert 2018-01-22 13:25:49 +09:00
parent 64c32f5715
commit 53e40a77dc
2 changed files with 4 additions and 3 deletions

View File

@ -292,10 +292,12 @@ namespace osu.Game.Beatmaps
currentDownloads.Remove(request);
};
request.Failure += data =>
request.Failure += error =>
{
if (error is OperationCanceledException) return;
downloadNotification.State = ProgressNotificationState.Completed;
Logger.Error(data, "Failed to get beatmap download information");
Logger.Error(error, "Beatmap download failed!");
currentDownloads.Remove(request);
};

View File

@ -180,7 +180,6 @@ namespace osu.Game.Overlays.Direct
{
progressBar.Current.Value = 0;
progressBar.FadeOut(500);
Logger.Error(e, "Failed to get beatmap download information");
};
request.DownloadProgressed += progress => progressBar.Current.Value = progress;