Repository navigation
dash: add discard to edit mode - #4367
Conversation
The dash edit mode only offered Reset to default and Finish, so a layout that went wrong had to be rebuilt by hand. The edit header shared by the dash popout and the island dash now has a Discard button that restores the dash cards and options as they were when edit mode was entered, like the Control Center's Discard. Escape in edit mode now discards in the dash and in the Control Center, where it used to keep the changes. Finish and every other way out of edit mode still keep them.
Claude reviewOne fix needed before merge: the shared edit controls show a Discard button that does nothing in the desktop widget editor.
Checked: the snapshot and restore of |
The desktop widget editor shares the dash edit controls but has no discard, so the button did nothing there.
Claude reviewNo issues found. The earlier dead Discard button in the desktop widget editor is fixed by Checked: the |
|
Thanks Marlon! I haven't looked at this yet, but it's been needed for sure. One last thing you could add to enhance it a step further is |
I already had this feature planned in for a different PR (im also doing some other changes to the dash edit mode) but I will rebase that commit and add it here instead. |
Like the control center, dash edit mode keeps a history of the card layout and page options and Ctrl+Z steps back one change at a time, in the popout and the island dash. Writes that land together (reset to default) count as one step. It is off while an options sheet, a menu or a card or panel resize is active. Option dropdowns now keep following the stored value after a pick, so a sheet the island keeps alive shows the restored value after undo, discard or reset instead of the last pick.
Claude reviewNo issues found. Checked: the new Ctrl+Z undo in |
|
done @purian23 |
Description
The dash edit mode only had Reset to default and Finish, so when a layout went wrong it had to be rebuilt by hand or reset to default and then rebuilt. The edit header now has a Discard button that puts the dash back the way it was when edit mode was opened, like the Discard in the control center. This works in both the dash popout and the island dash.
Pressing Escape in edit mode now discards too, in the dash and in the control center, where it kept the changes before. Finish and every other way out of edit mode still keep the edits.
Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings