1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Move schedule call outwards

This commit is contained in:
Dean Herbert 2020-11-16 16:49:31 +09:00
parent 9a7fdb2b7e
commit 709370c69b

View File

@ -199,9 +199,12 @@ namespace osu.Game
{ {
if (weakRemovedInfo.NewValue.TryGetTarget(out var removedInfo)) if (weakRemovedInfo.NewValue.TryGetTarget(out var removedInfo))
{ {
// check the removed skin is not the current user choice. if it is, switch back to default. Schedule(() =>
if (removedInfo.ID == SkinManager.CurrentSkinInfo.Value.ID) {
Schedule(() => SkinManager.CurrentSkinInfo.Value = SkinInfo.Default); // check the removed skin is not the current user choice. if it is, switch back to default.
if (removedInfo.ID == SkinManager.CurrentSkinInfo.Value.ID)
SkinManager.CurrentSkinInfo.Value = SkinInfo.Default;
});
} }
}); });