Skip to content

Commit

Permalink
Fix beatmap load not continuing when when settings slider is focused
Browse files Browse the repository at this point in the history
Regressed with recent sliderbar focus changes.

Closes ppy#30716.
  • Loading branch information
peppy committed Nov 20, 2024
1 parent 9451396 commit ae98f63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osu.Game/Screens/Play/PlayerLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ protected bool BackgroundBrightnessReduction
// not ready if the user is dragging a slider or otherwise.
&& (inputManager.DraggedDrawable == null || inputManager.DraggedDrawable is OsuLogo)
// not ready if a focused overlay is visible, like settings.
&& inputManager.FocusedDrawable == null;
&& inputManager.FocusedDrawable is not OsuFocusedOverlayContainer
// or if a child of a focused overlay is focused, like settings' search textbox.
&& inputManager.FocusedDrawable?.FindClosestParent<OsuFocusedOverlayContainer>() == null;

private readonly Func<Player> createPlayer;

Expand Down

0 comments on commit ae98f63

Please sign in to comment.