Skip to content

[BUG] Selection bar stays open showing "0 selected" after deleting/merging all selected items #1473

Description

@tmsjngx0

Describe the bug
When you multi-select items and then run an action that removes them from the list (e.g. delete, or merge in the Watchtower → Duplicate items list), the selection bar does not close. It stays open showing "0 selected" with no usable actions. The only way to dismiss it is to manually press the Clear (X) button or the back button. Until then the selection state feels "stuck".

To Reproduce

  1. Open Watchtower → Duplicate items.
  2. Select two or more duplicate items (selection bar appears, e.g. "3 selected").
  3. Run an action that removes those items from the list — Merge them, or Delete/Trash them.
  4. After the items disappear, the selection bar remains open but now shows "0 selected" and offers no actions.
  5. It only goes away after pressing the Clear (X) button or the back button. Until then you cannot start a clean new selection.

Expected behavior
Once the selected items are gone (deleted/merged), the selection should clear automatically and the bar should close — the same way folder merge already clears the selection.

Desktop (please complete the following information):

  • OS: Linux, and Windows (reproduced on both)
  • App version: 2.14.2-131670007.release

Additional context
Possible cause (from reading the source): in createCipherSelectionFlow the bar's visibility is decided from the raw selected-ID set (if (selectedCipherIds.isEmpty()) return null), while the displayed count uses IDs filtered against still-existing ciphers (count = selectedCiphers.size). Delete/trash/merge actions never call selectionHandle.clearSelection() (folder merge does), so stale IDs keep the bar visible while the filtered count is 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions