1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 20:07:25 +08:00

Fix incorrect conditional on export/mutate feasability of skin

This commit is contained in:
Dean Herbert 2021-12-02 13:41:20 +09:00
parent 65f0a80c97
commit 0a14acfd83
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ namespace osu.Game.Overlays.Settings.Sections
base.LoadComplete(); base.LoadComplete();
currentSkin = skins.CurrentSkin.GetBoundCopy(); currentSkin = skins.CurrentSkin.GetBoundCopy();
currentSkin.BindValueChanged(skin => Enabled.Value = skin.NewValue.SkinInfo.PerformRead(s => s.IsManaged), true); currentSkin.BindValueChanged(skin => Enabled.Value = skin.NewValue.SkinInfo.PerformRead(s => !s.Protected), true);
} }
private void export() private void export()

View File

@ -144,7 +144,7 @@ namespace osu.Game.Skinning
{ {
CurrentSkinInfo.Value.PerformRead(s => CurrentSkinInfo.Value.PerformRead(s =>
{ {
if (s.IsManaged) if (!s.Protected)
return; return;
// if the user is attempting to save one of the default skin implementations, create a copy first. // if the user is attempting to save one of the default skin implementations, create a copy first.