1
0
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:
Dean Herbert 2022-12-23 16:45:40 +08:00
parent b1232a7ee7
commit 5eccafe190

View File

@ -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);
}