mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 06:52:53 +08:00
Merge pull request #7844 from peppy/fix-download-button-after-cancel
Fix DownloadTrackingComposite incorrectly receiving cancelled state
This commit is contained in:
commit
de6ea60ae1
@ -105,9 +105,10 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
void triggerFailure(Exception error)
|
void triggerFailure(Exception error)
|
||||||
{
|
{
|
||||||
|
currentDownloads.Remove(request);
|
||||||
|
|
||||||
DownloadFailed?.Invoke(request);
|
DownloadFailed?.Invoke(request);
|
||||||
|
|
||||||
currentDownloads.Remove(request);
|
|
||||||
notification.State = ProgressNotificationState.Cancelled;
|
notification.State = ProgressNotificationState.Cancelled;
|
||||||
|
|
||||||
if (!(error is OperationCanceledException))
|
if (!(error is OperationCanceledException))
|
||||||
|
Loading…
Reference in New Issue
Block a user