Skip to content

docs(manual): correct the stale "cannot be undone" claims for list actions - #127

Open
dustenhubbard wants to merge 1 commit into
mainfrom
docs/undo-claims-object-list
Open

docs(manual): correct the stale "cannot be undone" claims for list actions#127
dustenhubbard wants to merge 1 commit into
mainfrom
docs/undo-claims-object-list

Conversation

@dustenhubbard

@dustenhubbard dustenhubbard commented Jul 31, 2026

Copy link
Copy Markdown
Member

Corrects six sentences in manual/readme.md that say an action cannot be undone when it can. Documentation only.

Edit Attributes and Edit Radius both pass series_states through enumerateSections, which records undo state per modified section, so Ctrl+Z reverts them. Neither path calls noUndoWarning, so the application already does not warn there.

The Undo and Redo entries claim list actions are not covered at all, which contradicts the two above. Both entries appear twice, under the menu bar and under the field right-click menu, hence four of the six. The replacement also mentions the "All sections" or "Only this section" prompt.

The Delete entry keeps its warning: deleteSections removes files from disk and then clears the states, so it is accurate.

Closes #121

…tions

Six sentences in `manual/readme.md` say an action cannot be undone when it
can.

`Edit Attributes` and `Edit Radius` on the object right-click menu both go
through `Series.editObjectAttributes` and `Series.editObjectRadius`, which
thread `series_states` into `Series.enumerateSections`. `SeriesIterator`
records one series state up front and calls `addState` plus
`addSectionUndo` for every section it modifies, so `Ctrl+Z` reverts the
whole edit.

The `Undo` and `Redo` entries claimed that nothing done through the object
or section list can be undone. `MainWindow.undo` reads
`series_states.canUndo()` and dispatches to `series_states.undoState()`,
which covers exactly those actions, and it prompts "All sections" or "Only
this section" when the action spanned several. Both entries appear twice,
once under the menu bar and once under the field right-click menu, so that
correction lands in four places.

Leaves the `Delete` warning under the section right-click menu alone.
`Series.deleteSections` calls `os.remove` on each section file and the slot
then calls `field.clearStates()`, so "This action CANNOT be undone" is
accurate there. The same holds for reordering sections and for optimizing
brightness and contrast: those three are the only callers of
`noUndoWarning`, and all three are correct.

No source changes.

Refs #121.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove stale "cannot be undone" warnings where undo now exists

1 participant