mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 15:27:20 +08:00
Revert SaveState()
calling on initialization
This commit is contained in:
parent
fb4b681cc5
commit
4d52ce769b
@ -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[]
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user