arduino-ide
arduino-ide copied to clipboard
"Open" dialog is minimized when it is opened
Describe the problem
When I select File > Open... from the Arduino IDE menus, the "Open" dialog opens in a minimized state:
To reproduce
- Select File > Open... from the Arduino IDE menus
🐛 The "Open" dialog is in a minimized state:
https://github.com/arduino/arduino-ide/assets/158043955/736e742b-ab3c-41a6-bc73-00f15141c657
Expected behavior
Dialogs are always visible when created by Arduino IDE.
Arduino IDE version
2.2.1
Operating system
Linux
Operating system version
МОС12
Issue checklist
- [X] I searched for previous reports in the issue tracker
- [X] I verified the problem still occurs when using the latest nightly build
- [X] My report contains all necessary details
From https://github.com/arduino/arduino-ide/issues/2325#issue-2065617796:
Describe the problem
When I do "File -> Open", the file browser doesn't seem to open, nothing seems to happen, except that Arduino's icon in the Task Manager changes to some "X" icon and has a "+" on the bottom indicating that there's more than one window. When I click on the icon, then the file browser popup comes to the foreground, and so I find out that it did open, but was on the background.
To reproduce
go to File -> Open
Expected behavior
Arduino's icon in the task manager shouldn't change to a different icon. The "+" on the bottom might be expected (though most applications do something better: the main window gets greyed out while the file browser popup is visible, and it doesn't count as an additional window). And most importantly, the file browser popup that has been opened as a result of a direct user input, should immediately be visible, focused, and on the foreground.
Arduino IDE version
2.2.1
Operating system
Linux
Operating system version
Manjaro Linux
Additional context
I did not verify the problem still occurs when using the latest nightly build because the nightly build isn't usable.
~I could not reproduce it on my Ubuntu 22.04 VM.~
Update: OK, I could reproduce it. It requires users to perform File
> Open
at least twice.
https://github.com/arduino/arduino-ide/assets/1405703/bb01ce01-aa49-4c15-a662-ff36eb8dd457
Related:
- https://github.com/electron/electron/issues/32857
- https://github.com/microsoft/vscode/issues/146422
- https://forums.linuxmint.com/viewtopic.php?t=381720
Does the Arduino IDE by any chance use Electron? Visual Studio Code has the exact same issue (or at least it looks pretty much the same): https://github.com/microsoft/vscode/issues/146422
Does the Arduino IDE by any chance use Electron?
It does. Naive question to ask in source code repository.
https://github.com/arduino/arduino-ide/tree/main/electron-app