mirror of
https://github.com/ppy/osu.git
synced 2026-05-13 20:33:35 +08:00
Null-propagate all calls to GetContainingFocusManager()
This commit is contained in:
@@ -58,7 +58,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
||||
editorInfo.Selected.ValueChanged += selection =>
|
||||
{
|
||||
// ensure any ongoing edits are committed out to the *current* selection before changing to a new one.
|
||||
GetContainingFocusManager().TriggerFocusContention(null);
|
||||
GetContainingFocusManager()?.TriggerFocusContention(null);
|
||||
|
||||
// Required to avoid cyclic failure in BindableWithCurrent (TriggerChange called during the Current_Set process).
|
||||
// Arguable a framework issue but since we haven't hit it anywhere else a local workaround seems best.
|
||||
|
||||
Reference in New Issue
Block a user