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:
parent
64c32f5715
commit
53e40a77dc
@ -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);
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user