mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Ensure TakeFocus
does not crash when not yet loaded
This commit is contained in:
@ -22,7 +22,10 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
public void TakeFocus()
|
||||
{
|
||||
if (allowImmediateFocus) GetContainingInputManager().ChangeFocus(this);
|
||||
if (!allowImmediateFocus)
|
||||
return;
|
||||
|
||||
Schedule(() => GetContainingInputManager().ChangeFocus(this));
|
||||
}
|
||||
|
||||
public bool HoldFocus
|
||||
|
Reference in New Issue
Block a user