mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
Fix incorrect conditional on export/mutate feasability of skin
This commit is contained in:
parent
65f0a80c97
commit
0a14acfd83
@ -179,7 +179,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
||||
base.LoadComplete();
|
||||
|
||||
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()
|
||||
|
@ -144,7 +144,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
CurrentSkinInfo.Value.PerformRead(s =>
|
||||
{
|
||||
if (s.IsManaged)
|
||||
if (!s.Protected)
|
||||
return;
|
||||
|
||||
// if the user is attempting to save one of the default skin implementations, create a copy first.
|
||||
|
Loading…
Reference in New Issue
Block a user