Skip to content

Commit

Permalink
Merge pull request #29068 from bdach/results-statistics-toggle-crash
Browse files Browse the repository at this point in the history
Fix crash when toggling extended statistics visibility during results load
  • Loading branch information
peppy authored Jul 25, 2024
2 parents 6cc3e8a + 8dbd4d7 commit c90e040
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osu.Game/Screens/Ranking/ResultsScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
break;

case GlobalAction.Select:
StatisticsPanel.ToggleVisibility();
if (SelectedScore.Value != null)
StatisticsPanel.ToggleVisibility();
return true;
}

Expand Down

0 comments on commit c90e040

Please sign in to comment.