Add early exist if the target screen is no longer current

This commit is contained in:
Dean Herbert 2022-03-14 17:24:31 +09:00
parent f95e753adb
commit 3c5fda5f23

View File

@ -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);