zxcalc / zxlive

A graphical tool for the ZX calculus
Apache License 2.0
51 stars 20 forks source link

Option to auto-save #320

Open boldar99 opened 4 months ago

RazinShaikh commented 4 months ago

One possible way to implement this is to modify _push_now method of the undo stack (https://github.com/Quantomatic/zxlive/blob/master/zxlive/animations.py#L64) and if the auto save is enabled, perform a save whenever an action is performed and added to the undo stack