Skip to content

Commit

Permalink
Remember whether to sync to other atoms
Browse files Browse the repository at this point in the history
  • Loading branch information
acidbubbles committed Aug 16, 2021
1 parent 9c022c7 commit 6c00bcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/UI/Screens/AddAnimationScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 6c00bcb

Please sign in to comment.