1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 15:27:24 +08:00

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.
This commit is contained in:
wooster0 2024-01-06 13:30:14 +09:00
parent a42a1eeca2
commit 62c49c8714

View File

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