mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 16:13:34 +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:
parent
a42a1eeca2
commit
62c49c8714
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user