Skip to content

[Next] Add Plural Snapshot Deletion Message Suggested from #580 - #583

Open
EthanNoble wants to merge 1 commit into
linuxmint:masterfrom
EthanNoble:plural_deletion_message
Open

EthanNoble wants to merge 1 commit into
linuxmint:masterfrom
EthanNoble:plural_deletion_message

Conversation

@EthanNoble

@EthanNoble EthanNoble commented Nov 13, 2026 •

Copy link
Copy Markdown

Fixes #580

Bug: When several snapshots are selected and deleted from the main window, the confirmation dialog says "Are you sure you want to delete this snapshot?" (singular), making it unclear whether all selected snapshots will be deleted.

Fix: delete_selected() now checks how many snapshots are selected and shows "Are you sure you want to delete these snapshots?" when there is more than one. Both messages are wrapped in _() so they can be translated.

Note selected_snapshots() is only called once now to make code a bit cleaner and avoid building the list more times than is necessary.

Tested (Arch, GNOME (Wayland)):

  • 1 snapshot selected --> singular message
  • Several selected, via toolbar and via right-click menu --> plural message
  • Answering "No" deletes nothing
  • Selection containing a live snapshot still shows the live-snapshot error

@EthanNoble EthanNoble changed the title add plural message variant suggested from #580 Add Plural Snapshot Deletion Message Suggested from #580 Nov 13, 2026
@EthanNoble
EthanNoble force-pushed the plural_deletion_message branch from 3d214ba to daf247f Compare November 13, 2026 04:51
@clefebvre clefebvre changed the title Add Plural Snapshot Deletion Message Suggested from #580 [Next] Add Plural Snapshot Deletion Message Suggested from #580 Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Delete snapshots: number mismatch

1 participant