From 6c00bcb80f2fc71a7a3ca16fc972f61ebeaa9eb9 Mon Sep 17 00:00:00 2001 From: Acid Bubbles Date: Mon, 16 Aug 2021 15:57:50 -0400 Subject: [PATCH] Remember whether to sync to other atoms --- src/UI/Screens/AddAnimationScreen.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/UI/Screens/AddAnimationScreen.cs b/src/UI/Screens/AddAnimationScreen.cs index e1bc499a..b892b3b1 100644 --- a/src/UI/Screens/AddAnimationScreen.cs +++ b/src/UI/Screens/AddAnimationScreen.cs @@ -12,6 +12,8 @@ public class AddAnimationScreen : ScreenBase private const string _positionNext = "Next"; private const string _positionLast = "Last"; + private static bool _previousCreateInOtherAtoms = false; + private UIDynamicButton _addAnimationTransitionUI; private JSONStorableStringChooser _createPosition; private JSONStorableString _createName; @@ -90,7 +92,7 @@ private void InitCreateAnimationOptionsUI() _createName = new JSONStorableString("Name", ""); prefabFactory.CreateTextInput(_createName); - _createInOtherAtoms = new JSONStorableBool("Create in other atoms", false); + _createInOtherAtoms = new JSONStorableBool("Create in other atoms", _previousCreateInOtherAtoms, val => _previousCreateInOtherAtoms = val); prefabFactory.CreateToggle(_createInOtherAtoms); }