mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 11:53:21 +08:00
Avoid scheduling focus operation when not required
This commit is contained in:
parent
1fdaefef99
commit
5441fab692
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user