From 62c49c87140ea709d047a5cc49fa504a45b13c4b Mon Sep 17 00:00:00 2001 From: wooster0 Date: Sat, 6 Jan 2024 13:30:14 +0900 Subject: [PATCH] Also default to local if details tab is selected Originally I made it so that if the details tab was selected in song select, there's no in-game leaderboard visible but you can already hide the in-game leaderboard with the tab key. --- osu.Game/Screens/Select/PlaySongSelect.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Screens/Select/PlaySongSelect.cs b/osu.Game/Screens/Select/PlaySongSelect.cs index 5860250d6e..8e92c3a530 100644 --- a/osu.Game/Screens/Select/PlaySongSelect.cs +++ b/osu.Game/Screens/Select/PlaySongSelect.cs @@ -125,8 +125,8 @@ namespace osu.Game.Screens.Select // Default to local leaderboard if the currently selected leaderboard doesn't have scores or is unavailable // perhaps because it requires sign in, requires the beatmap to be ranked, etc. - bool isLeaderboardSelected = beatmapDetailTab.Value != PlayBeatmapDetailArea.TabType.Details; - if (isLeaderboardSelected && !(playBeatmapDetailArea.Leaderboard.State == LeaderboardState.Success)) + // Also default to local if the details tab is selected so the leaderboard with the new score is visible after returning to song select. + if (playBeatmapDetailArea.Leaderboard.State != LeaderboardState.Success || beatmapDetailTab.Value == PlayBeatmapDetailArea.TabType.Details) beatmapDetailTab.Value = PlayBeatmapDetailArea.TabType.Local; SampleConfirm?.Play();