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:
parent
9a7fdb2b7e
commit
709370c69b
@ -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;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user