1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 22:27:46 +08:00

Revert SaveState() calling on initialization

This commit is contained in:
Terochi 2023-05-01 12:53:58 +02:00
parent fb4b681cc5
commit 4d52ce769b
2 changed files with 2 additions and 1 deletions

View File

@ -198,6 +198,7 @@ namespace osu.Game.Tests.Visual.Gameplay
firstTarget = Player.ChildrenOfType<SkinComponentsContainer>().First();
changeHandler = new TestSkinEditorChangeHandler(firstTarget);
changeHandler.SaveState();
defaultState = changeHandler.GetCurrentState();
testComponents = new[]

View File

@ -34,7 +34,7 @@ namespace osu.Game.Overlays.SkinEditor
return;
components = new BindableList<ISerialisableDrawable> { BindTarget = firstTarget.Components };
components.BindCollectionChanged((_, _) => SaveState(), true);
components.BindCollectionChanged((_, _) => SaveState());
}
protected override void WriteCurrentStateToStream(MemoryStream stream)