Description
Describe the problem
When uploading to a native USB board while Serial Monitor is open, the "Serial Monitor" view takes visibility from the "Output" view twice during the upload:
🐛 Users who want to monitor the upload process via the "Output" view will find it inconvenient to lose sight of it in the middle of the process, and then have to select the view once more after every upload.
To reproduce
- Connect a native USB board (e.g., Leonardo, Micro, MKR boards, Nano 33 IoT, Nano 33 BLE) to your computer.
- Select the board and port in the Arduino IDE.
- Open the "Serial Monitor" view.
- Select the "Output" view.
- Click the "Upload" button.
🐛 The view visible in the bottom panel is switched multiple times, as follows:
- "Output" view
- "Serial Monitor" view
- "Output" view
- "Serial Monitor" view
Note that the view that is visible after the process finishes does not match the user's selected focus.
Expected behavior
The "Output" view retains visibility throughout and after the upload process.
Arduino IDE version
2.0.0-rc7-snapshot-a54d7c8
Operating system
Windows
I am not able to reproduce the issue on my Linux machine.
Operating system version
10
Additional context
If the user had the "Serial Monitor" view selected at the time the upload process was triggered, it would be reasonable to return that view to visibility at the end of the upload process (as was requested here).
However, even in this case the switch from the "Output" view to the "Serial Monitor" view and then back to the "Output" view in the middle of the upload process is surely a poor user experience.
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details