| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 658a594 commit bcdac57
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -389,8 +389,13 @@ protected void initModeMenu() { | |||
| 389 | 389 | JRadioButtonMenuItem item = new JRadioButtonMenuItem(m.getTitle()); | |
| 390 | 390 | item.addActionListener(new ActionListener() { | |
| 391 | 391 | public void actionPerformed(ActionEvent e) { | |
| 392 | - base.changeMode(m); | ||
| 393 | - if (sketch.isModified()) { | ||
| 392 | + if (!sketch.isModified()) { | ||
| 393 | + base.changeMode(m); | ||
| 394 | + | ||
| 395 | + } else { | ||
| 396 | + // Re-select the old checkbox, because it was automatically | ||
| 397 | + // updated by Java, even though the Mode could not be changed. | ||
| 398 | + // https://github.com/processing/processing/issues/2615 | ||
| 394 | 399 | for (Component c : modeMenu.getPopupMenu().getComponents()) { | |
| 395 | 400 | if (c instanceof JRadioButtonMenuItem) { | |
| 396 | 401 | if (((JRadioButtonMenuItem)c).getText() == mode.getTitle()) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,6 +63,10 @@ in-progress Google Summer of Code projects and others: | |||
| 63 | 63 | + Add preference to set the present color | |
| 64 | 64 | https://github.com/processing/processing/pull/2568 | |
| 65 | 65 | ||
| 66 | + + Fix a problem where mode menu selection would change even if | ||
| 67 | + the change was canceled due to the sketch being modified | ||
| 68 | + https://github.com/processing/processing/issues/2615 | ||
| 69 | + | ||
| 66 | 70 | ||
| 67 | 71 | [ more bug fixes ] | |
| 68 | 72 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,6 +20,8 @@ X contrib properties files ignored in favor of contributions.txt from p5.org | |||
| 20 | 20 | X https://github.com/processing/processing/issues/2572 | |
| 21 | 21 | X tweak mode integrated | |
| 22 | 22 | X https://github.com/processing/processing/pull/2624 | |
| 23 | + X wrong mode selected if sketch is modified (checkbox changes) | ||
| 24 | + X https://github.com/processing/processing/issues/2615 | ||
| 23 | 25 | ||
| 24 | 26 | pulls | |
| 25 | 27 | X Implementation of a list of open sketches in the Sketch menu | |
| Back | FazBrowse Home | New Git URL |
0 commit comments