Skip to content

Commit

Permalink
Merge pull request ppy#28383 from peppy/fix-main-menu-test-fail
Browse files Browse the repository at this point in the history
Fix occasional test failures on new menu content tests
  • Loading branch information
bdach authored Jun 3, 2024
2 parents 8296e63 + 9651413 commit 7b14c77
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion osu.Game/Screens/Menu/OnlineMenuBanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,15 @@ private void checkForUpdates()
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.
Expand Down

0 comments on commit 7b14c77

Please sign in to comment.