aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-05-16 13:46:06 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-05-16 13:46:06 -0500
commitd63c3feb9fc2476c135e22aff821e260faf72b89 (patch)
treeef071fbf191b83716fab6a9e5e316322391c2372 /src/plugins
parente403a7a9e1a71dde52fe21e1dd2215c0981a3fbc (diff)
ui: inline trash icon on backup-restore dialog
User feedback: the only way to clean up old backups was to hand-edit the profile directory, since the "Choose backup to restore" dialog exposed select-or-cancel and no delete affordance. Add an addChoice overload on SelectionDialog that takes a per-row delete callback. Each row is rendered as a horizontal layout — QCommandLinkButton (stretched) plus a small auto-raised QToolButton with a trash icon (user-trash → edit-delete → SP_TrashIcon fallback chain). Clicking the trash prompts for confirmation, invokes the callback, and hides the row on success; the QCommandLink remains live for restore. numChoices() now counts visible rows under scrollAreaWidgetContents so the "no backups" check stays correct as rows disappear. MainWindow::queryRestore wires the callback to delete the matching Plugins.txt.<ts>, loadorder.txt.<ts>, and lockedorder.txt.<ts> triplet via QFile::remove. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions