Skip to content

fix: move selection to adjacent item after session deletion#255

Open
ariane-emory wants to merge 1 commit intodevfrom
fix/session-list-delete-selection
Open

fix: move selection to adjacent item after session deletion#255
ariane-emory wants to merge 1 commit intodevfrom
fix/session-list-delete-selection

Conversation

@ariane-emory
Copy link
Owner

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

When deleting a session in the session list dialog, the selection now moves to an adjacent item (next or previous) instead of staying at the same index which could point to a non-adjacent session.

Changes:

  • Expose moveTo function in DialogSelectRef
  • Track index before deletion in dialog-session-list
  • Move to adjacent item after successful deletion

When deleting a session in the session list dialog, the selection now
moves to an adjacent item (next or previous) instead of staying at
the same index which could point to a non-adjacent session.

Changes:
- Expose moveTo function in DialogSelectRef
- Track index before deletion in dialog-session-list
- Move to adjacent item after successful deletion

This fix is compatible with session grouping and bookmarks.
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.

1 participant