1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +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 // 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. // perhaps because it requires sign in, requires the beatmap to be ranked, etc.
bool isLeaderboardSelected = beatmapDetailTab.Value != PlayBeatmapDetailArea.TabType.Details; // 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 (isLeaderboardSelected && !(playBeatmapDetailArea.Leaderboard.State == LeaderboardState.Success)) if (playBeatmapDetailArea.Leaderboard.State != LeaderboardState.Success || beatmapDetailTab.Value == PlayBeatmapDetailArea.TabType.Details)
beatmapDetailTab.Value = PlayBeatmapDetailArea.TabType.Local; beatmapDetailTab.Value = PlayBeatmapDetailArea.TabType.Local;
SampleConfirm?.Play(); SampleConfirm?.Play();