1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 01:39:54 +08:00

Add back schedule for safety

This commit is contained in:
Dean Herbert
2022-04-28 14:29:57 +09:00
Unverified
parent 7c1b0b41ff
commit 3c45746ba1
+8 -3
View File
@@ -175,10 +175,15 @@ namespace osu.Game.Screens.Play
if (skinManager.EnsureMutableSkin())
return;
var skin = skinManager.CurrentSkin.Value;
skin.UpdateDrawableTarget(skinnableTarget);
// If `EnsureMutableSkin` actually changed the skin, default layout may take a frame to apply.
// See `SkinnableTargetComponentsContainer`'s use of ScheduleAfterChildren.
ScheduleAfterChildren(() =>
{
var skin = skinManager.CurrentSkin.Value;
skin.UpdateDrawableTarget(skinnableTarget);
skinManager.Save(skin);
skinManager.Save(skin);
});
configShowGraph.SetDefault();
}