1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 08:30:00 +08:00

Null-propagate all calls to GetContainingFocusManager()

This commit is contained in:
Bartłomiej Dach
2024-05-27 11:02:51 +02:00
Unverified
parent 7f08008059
commit 8a4ae5d23d
24 changed files with 26 additions and 26 deletions
@@ -85,7 +85,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
Current.BindValueChanged(updateTextBoxFromSlider, true);
}
public bool TakeFocus() => GetContainingFocusManager().ChangeFocus(textBox);
public bool TakeFocus() => GetContainingFocusManager()?.ChangeFocus(textBox) == true;
public bool SelectAll() => textBox.SelectAll();