Repository navigation
Offset Path's Preview checkbox keeps its last state across opens (#3195) - #3203
Merged
bflatastic merged 1 commit intoOct 21, 2026
Merged
Conversation
Contributor
Messhias
suggested changes
Oct 20, 2026
Messhias
left a comment
Contributor
There was a problem hiding this comment.
cargo xtask ci is incomplete or unchecked on this PR. Run it end to end (fmt, clippy, tests, assets, brands, layers, wasm), tick the checklist when green, and reply here with the outcome. That is required before any approve from here.
…rytold#3195) The Offset Path dialog remembers the values it was last confirmed with (storytold#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 storytold#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>
bflatastic
force-pushed
the
fix/offset-path-preview-memory
branch
from
October 21, 2026 08:41
c79e98f to
9ce5ffd
Compare
Member
|
Merged, thanks @rahul05ranjan! Offset Path's Preview checkbox keeps its last state across opens (#3195). If you'd like to talk about what's next, we're on Discord: https://discord.gg/artcraft |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's wrong
Offset Path remembers the values it was last confirmed with (#1152 —
offset,joins,miterLimitare kept inapp.ui.offset_pathon OK), but the Preview checkbox is not among the kept fields. So every time the dialog opens — including for the next object — Preview starts unchecked (d.bool("preview")defaults tofalsewhen the field is absent), and it has to be ticked by hand every time (#3195).Simplify's "Open this dialog with these settings next time" already keeps its
previewfield amongSIMPLIFY_KEPT; Offset Path was the odd one out.What the fix does
previewjoins the fields Offset Path keeps on OK:That is the whole change. Unchanged behaviour:
false, so an unchecked state is remembered too.Verification
A regression test next to the existing
offset_path_remembers_its_last_values(same harness, same shape):I traced the flow on current
mainend to end (menus.rs:3390opens onapp.ui.offset_pathwhen it is an object;form::preview_resultwrites the checkbox intod.fields["preview"];Dialog::booldefaults tofalse), and the new test mirrorsoffset_path_remembers_its_last_valuesline by line — but I had no Rust toolchain on the machine I worked from, so I could not executecargo testhere. Flagging that plainly; happy to adjust if CI finds anything.Fixes #3195
Summary by CodeRabbit
Bug Fixes
Tests