code icon indicating copy to clipboard operation
code copied to clipboard

Sidebar: First select fails to open document after branch change which removes a sidebar item

Open jeremypw opened this issue 2 years ago • 4 comments

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

  1. Open a git project
  2. Prepare (if necessary) a branch that contains a file not existing in another branch and switch to that branch
  3. Change the branch so that the file is removed from the sidebar
  4. 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

jeremypw avatar Jan 12 '24 19:01 jeremypw

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.

jeremypw avatar Jan 12 '24 19:01 jeremypw