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
Wrong mode shows as being selected in Mode Menu pop-up when trying to change mode with unsaved changes in sketch #2615
When there are unsaved changes in the Sketch, and the user tries to change the mode, after the dialog that prompts the user to save unsaved changes appears, the Mode Menu popup shows the mode that the user tried to change to as the current mode, not the actual current mode.
Reproducing this issue:
Not exactly. From what I can see, this happens because of the behavior of JRadioButtonMenuItem, where the item clicked on automatically gets selected, and not because of the file extension.
Here, a new window doesn't open, although the symptom of Python mode being selected in the Java window is similar (point number 4).