Files
vectorcraft/crates
dotCooCoo cb0073747a Live preview: commit only the edit the dialog started
The shared dialog preview previewed into, canceled and committed whatever
edit the active document had in progress. After a dialog's preview had
ended (Preview turned off, an undo), OK ran the dialog's command on the
snapshot of another dialog's, a panel's or typing's edit and kept it in
that edit's place, losing the edit; Cancel rolled that edit back, and a
new preview replaced its preview.

The per-dialog fixes for Transform (#9584), the standalone effect
dialogs (#9626) and Flatten Transparency (#9784) each check in their own
dialog that a preview is theirs. The shared preview now makes the check
for every dialog: it records the interaction it ran in, by the
document's id and revert count and the interaction's selection
snapshot. Cancel rolls back only that interaction. With another edit in progress a new
preview does not run, and OK keeps typing in progress as its own step
and runs the command, or, with any other edit still open, is refused
with "Finish the active edit first." and the dialog stays open.

Vector Halftone dropped its preview whenever the interaction held no
halftone preview, which after a failed preview would now leave the
dialog unable to preview again; the shared preview forgets an ended
preview itself, so that reset is removed.
2026-11-27 13:25:27 -08:00
..
…
…
…