mirror of
https://github.com/osukey/osukey.git
synced 2025-07-12 13:49:56 +09:00
Add early exist if the target screen is no longer current
This commit is contained in:
@ -132,6 +132,9 @@ namespace osu.Game.Skinning.Editor
|
|||||||
{
|
{
|
||||||
Debug.Assert(skinEditor != null);
|
Debug.Assert(skinEditor != null);
|
||||||
|
|
||||||
|
if (!target.IsCurrentScreen())
|
||||||
|
return;
|
||||||
|
|
||||||
if (!target.IsLoaded)
|
if (!target.IsLoaded)
|
||||||
{
|
{
|
||||||
Scheduler.AddOnce(setTarget, target);
|
Scheduler.AddOnce(setTarget, target);
|
||||||
|
Reference in New Issue
Block a user