"File > Preferences" disabled if dialog used soon after IDE startup #1735
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
If the "Preferences" dialog is opened soon after Arduino IDE is started, after closing the menu the File > Preferences menu item is disabled.
To reproduce
🐛 The File > Preferences menu item is disabled:
Expected behavior
File > Preferences menu item is only disabled if there is a specific reason the preferences dialog should not be accessible to the user (The only reason I can think of is if the dialog is already open, but that should be handled by making the dialog modal).
Arduino IDE version
5695fd8
Operating system
Windows
Operating system version
10
Additional context
I bisected the introduction of the bug to 7d6a2d5 / #1581 (does not occur when using the build for 6984c52).
Similar to #1722 (note they were bisected to the same commit).
The fault does not occur if the IDE startup process is allowed to finish completely (as indicated by the disappearance of the busy spinner next to the mouse pointer).
The menu item is enabled in new Arduino IDE windows that are opened when the menu item is in the disabled state in the parent window.
Even when the menu item is in the disabled state, I can still open the "Preferences" dialog using the keyboard shortcut (Ctrl+,), or "Arduino: Open Preferences" command palette command.
I have experienced a similar fault with Tools > WiFi101 / WiFiNINA Firmware Updater, but have not found a way to reproduce it.
Issue checklist
The text was updated successfully, but these errors were encountered: