mirror of
https://github.com/ppy/osu.git
synced 2026-05-24 14:10:40 +08:00
Null-propagate all calls to GetContainingFocusManager()
This commit is contained in:
@@ -31,7 +31,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
if (!allowImmediateFocus)
|
||||
return;
|
||||
|
||||
Scheduler.Add(() => GetContainingFocusManager().ChangeFocus(this));
|
||||
Scheduler.Add(() => GetContainingFocusManager()?.ChangeFocus(this));
|
||||
}
|
||||
|
||||
public new void KillFocus() => base.KillFocus();
|
||||
|
||||
Reference in New Issue
Block a user