mirror of
https://github.com/ppy/osu.git
synced 2026-05-19 23:40:44 +08: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);
|
||||
|
||||
if (!target.IsCurrentScreen())
|
||||
return;
|
||||
|
||||
if (!target.IsLoaded)
|
||||
{
|
||||
Scheduler.AddOnce(setTarget, target);
|
||||
|
||||
Reference in New Issue
Block a user