mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
The Offset Path dialog remembers the values it was last confirmed with (#1152), but the Preview checkbox was not among the kept fields, so every open started unchecked and Preview had to be ticked manually each time. Preview now rides along with offset, joins and miterLimit in the fields kept on OK, as Simplify's retained fields already keep theirs. Unchanged: a very first open (nothing kept yet) still starts unchecked, and Cancel keeps nothing. Adds a regression test beside offset_path_remembers_its_last_values: open, tick Preview, confirm, reopen - the checkbox is still on. Verified by reading the flow on current main (menus.rs opens on app.ui.offset_path when it is an object, d.bool("preview") defaults to false when the field is absent, form::preview_result ticks the checkbox into d.fields) and by tracing the existing #1152 test; no Rust toolchain on this machine, so the test was not executed here - saying so plainly for the reviewer. Co-authored-by: rahul05ranjan <11793455+rahul05ranjan@users.noreply.github.com>