Skip to content

Never leave programmers menu empty #9912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

matthijskooijman
Copy link
Collaborator

This is a followup for PR #9900 that was just merged.

When there are no programmers available for the current board, the
programmers menu would remain empty, which would prevent it from
unfolding and could make users think there was something wrong with the
menu.

Now, a disabled item with a message is added if no programmers are
available, which should make it more clear what is going on.

I also think that a similar approach might be useful for the Ports menu (now every now and then users think there is something broken when the ports menu is grayed out), but I noticed that there is some serial port selection popup code (never knew that existed, hm) that checks for empty-ness of the menu, so that needs a bit more though (and I have no time for that right now).

When there are no programmers available for the current board, the
programmers menu would remain empty, which would prevent it from
unfolding and could make users think there was something wrong with the
menu.

Now, a disabled item with a message is added if no programmers are
available, which should make it more clear what is going on.

This is a followup for arduino#9373.
@facchinm facchinm merged commit 6c7d104 into arduino:master Mar 25, 2020
@matthijskooijman matthijskooijman deleted the no-empty-programmers-menu branch March 28, 2020 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants