Merge pull request #28383 from peppy/fix-main-menu-test-fail

Fix occasional test failures on new menu content tests
This commit is contained in:
Bartłomiej Dach 2024-06-03 10:29:18 +02:00 committed by GitHub
commit 7b14c77e43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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.