mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
Fix wiki overlay showing error message when load is cancelled
This commit is contained in:
parent
b1232a7ee7
commit
5eccafe190
@ -118,7 +118,11 @@ namespace osu.Game.Overlays
|
||||
Loading.Show();
|
||||
|
||||
request.Success += response => Schedule(() => onSuccess(response));
|
||||
request.Failure += _ => Schedule(onFail);
|
||||
request.Failure += ex =>
|
||||
{
|
||||
if (ex is not OperationCanceledException)
|
||||
Schedule(onFail);
|
||||
};
|
||||
|
||||
api.PerformAsync(request);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user