Closed
Description
Describe the bug
When double-clicking or selecting "Open Sketch in New Window" the new window with the Sketch will open,
but the last state of the Sketchbook Explorer (or Remote Sketchbook Explorer) is not preserved.
It either closes the sidebar or switches to the local Sketchbook
To Reproduce
Steps to reproduce the behavior:
- launch IDE
- expand Sketchbook
- select Remote Sketchbook (sign in if necessary)
- double-click a Sketch which is not open
- it will open to another window but the state of the sidebar will change
Expected behavior
The sidebar will automatically open to the last view the user had when double-clicking (or opening from the 3 dots menu)
Activity
AlbyIanna commentedon Mar 14, 2022
I discussed it with @91volt and we defined a slightly more detailed behavior.Expected behaviorWhenever a sketch is opened (by double-clicking it on the sidebar or opening it from the 3 dots menu or when the Arduino IDE is launched from scratch) the sidebar will automatically open at the location of the current sketch; e.g.: if I open a remote sketch, the sidebar will show with the remote sketchbook open.
Note that if I close the editor with another widget open (the Library Manager, for example), when I re-open the IDE I still want the sidebar to show the sketchbook at the sketch location.
EDIT:
Ignore this comment. The expected behavior is the one in the description.