1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 08:07:24 +08:00

Merge pull request #7844 from peppy/fix-download-button-after-cancel

Fix DownloadTrackingComposite incorrectly receiving cancelled state
This commit is contained in:
Dan Balasescu 2020-02-15 17:07:43 +09:00 committed by GitHub
commit de6ea60ae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,9 +105,10 @@ namespace osu.Game.Database
void triggerFailure(Exception error)
{
currentDownloads.Remove(request);
DownloadFailed?.Invoke(request);
currentDownloads.Remove(request);
notification.State = ProgressNotificationState.Cancelled;
if (!(error is OperationCanceledException))