mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Switch back to default skin when the user selected skin is deleted
This commit is contained in:
@ -93,6 +93,12 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
this.audio = audio;
|
||||
|
||||
ItemRemoved += removedInfo => {
|
||||
// check the removed skin is not the current user choice. if it is, switch back to default.
|
||||
if (removedInfo.ID == CurrentSkinInfo.Value.ID)
|
||||
CurrentSkinInfo.Value = SkinInfo.Default;
|
||||
};
|
||||
|
||||
CurrentSkinInfo.ValueChanged += info => CurrentSkin.Value = GetSkin(info);
|
||||
CurrentSkin.ValueChanged += skin =>
|
||||
{
|
||||
|
Reference in New Issue
Block a user