1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 15:27:30 +08:00

Fix occasional test failures on new menu content tests

Scheduled data transfer could still overwrite test data.
This commit is contained in:
Dean Herbert 2024-06-03 12:24:50 +09:00
parent 8296e6318a
commit 96514132c1
No known key found for this signature in database

View File

@ -77,7 +77,15 @@ namespace osu.Game.Screens.Menu
return;
if (r.IsCompletedSuccessfully)
Schedule(() => Current.Value = request.ResponseObject);
{
Schedule(() =>
{
if (!FetchOnlineContent)
return;
Current.Value = request.ResponseObject;
});
}
// if the request failed, "observe" the exception.
// it isn't very important why this failed, as it's only for display.