code
code copied to clipboard
Sidebar: First select fails to open document after branch change which removes a sidebar item
What Happened?
After changing branches (which causes some of the loaded documents to change, selecting another document in the foldermanager failed to open it.
Steps to Reproduce
- Open a git project
- Prepare (if necessary) a branch that contains a file not existing in another branch and switch to that branch
- Change the branch so that the file is removed from the sidebar
- Try to open another doc from the sidebar.
An easier way to demonstrate the problem is to create a temporary file item in the sidebar and then delete it. The next select then fails to open a document.
Expected Behavior
Selecting a document in the sidebar should open it under these circumstances
OS Version
7.x (Horus)
Software Version
Latest release (I have run all updates)
Log Output
No response
Hardware Info
No response
This issue is an unfortunate side-effect of the ignore_next_select property of the foldermanager introduced to prevent unwanted docs opening after an item was renamed or removed.