Skip to content

fix (filebrowser): clear selection and expand target after drag-and-drop move#3769

Open
emilioheredia-source wants to merge 2 commits intoControlSystemStudio:masterfrom
emilioheredia-source:filebrowser/fix-drag-drop-tree-state
Open

fix (filebrowser): clear selection and expand target after drag-and-drop move#3769
emilioheredia-source wants to merge 2 commits intoControlSystemStudio:masterfrom
emilioheredia-source:filebrowser/fix-drag-drop-tree-state

Conversation

@emilioheredia-source
Copy link
Copy Markdown

After a MOVE drag-and-drop, the removed TreeItem was left in the SelectionModel, leaving the tree highlighted in a confused state until the file browser was closed and reopened.

Two fixes in FileTreeCell:

  • onDragDone: call clearSelection() after removing the moved item so the tree view returns to a clean state immediately.
  • move_or_copy: expand the target folder and select the newly added item so the moved/copied file is immediately visible without requiring the user to manually expand the destination directory.

…op move

After a MOVE drag-and-drop, the removed TreeItem was left in the
SelectionModel, leaving the tree highlighted in a confused state until
the file browser was closed and reopened.

Two fixes in FileTreeCell:
- onDragDone: call clearSelection() after removing the moved item so the
  tree view returns to a clean state immediately.
- move_or_copy: expand the target folder and select the newly added item
  so the moved/copied file is immediately visible without requiring the
  user to manually expand the destination directory.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 4, 2026

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.

2 participants