1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 16:02:58 +08:00

Avoid scheduling focus operation when not required

This commit is contained in:
Dean Herbert 2021-08-18 12:45:14 +09:00
parent 1fdaefef99
commit 5441fab692

View File

@ -25,7 +25,7 @@ namespace osu.Game.Graphics.UserInterface
if (!allowImmediateFocus)
return;
Schedule(() => GetContainingInputManager().ChangeFocus(this));
Scheduler.Add(() => GetContainingInputManager().ChangeFocus(this), false);
}
public bool HoldFocus