mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09: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);
|
currentDownloads.Remove(request);
|
||||||
};
|
};
|
||||||
|
|
||||||
request.Failure += data =>
|
request.Failure += error =>
|
||||||
{
|
{
|
||||||
|
if (error is OperationCanceledException) return;
|
||||||
|
|
||||||
downloadNotification.State = ProgressNotificationState.Completed;
|
downloadNotification.State = ProgressNotificationState.Completed;
|
||||||
Logger.Error(data, "Failed to get beatmap download information");
|
Logger.Error(error, "Beatmap download failed!");
|
||||||
currentDownloads.Remove(request);
|
currentDownloads.Remove(request);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -180,7 +180,6 @@ namespace osu.Game.Overlays.Direct
|
|||||||
{
|
{
|
||||||
progressBar.Current.Value = 0;
|
progressBar.Current.Value = 0;
|
||||||
progressBar.FadeOut(500);
|
progressBar.FadeOut(500);
|
||||||
Logger.Error(e, "Failed to get beatmap download information");
|
|
||||||
};
|
};
|
||||||
|
|
||||||
request.DownloadProgressed += progress => progressBar.Current.Value = progress;
|
request.DownloadProgressed += progress => progressBar.Current.Value = progress;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user