Closed as duplicate of#2678
@fcana

Description

Describe the problem

IDE seems to open the last closed file instead of opening the right one

To reproduce

  1. open Arduino IDE
  2. try opening any .ino file from file explorer

Expected behavior

the last opened file is opening instead of the requested one

Arduino IDE version

2.3.5

Operating system

Windows

Operating system version

11

Additional context

No response

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