Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Correct mode is now selected in modeMenu, resolving Issue #2615 #2616
This resolves Issue #2615, where trying to change the Mode when there are unsaved changes doesn't change the mode, but shows the mode as being changed in the modeMenu popup. What has been done is that in case there are unsaved changes in the sketch, the last mode is selected again.
No, I'm afraid the problem would still persist, since this is related to how the JRadioButtonMenuItem group works, and to not have something clicked on selected, the selection has to be explicitly changed. Clicking on the JRadioButtonMenuItem automatically selects it.
For example, assume there are unsaved changes in a sketch. Trying to change the mode requests the user to save first, and the mode doesn't change. However, the mode the user just selected shows as being selected, like so:
Is this ok? Should I change something?