Skip to content

Commit 89fa1c4

Browse files
Don't re-set board preference when changing custom suboptions
Since the custom suboptions are only visible when their associated board is the currently selected one, there is no point in re-setting the current board when a suboption is selected.
1 parent d5cc92d commit 89fa1c4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

app/src/processing/app/Base.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,23 +1373,12 @@ public void actionPerformed(ActionEvent actionevent) {
13731373
@SuppressWarnings("serial")
13741374
Action subAction = new AbstractAction(_(boardCustomMenu.get(customMenuOption))) {
13751375
public void actionPerformed(ActionEvent e) {
1376-
Preferences.set("target_package", (String) getValue("package"));
1377-
Preferences.set("target_platform", (String) getValue("platform"));
1378-
Preferences.set("board", (String) getValue("board"));
13791376
Preferences.set("custom_" + menuId, getValue("board") + "_" + getValue("custom_menu_option"));
1380-
1381-
filterVisibilityOfSubsequentBoardMenus((String) getValue("board"), currentIndex);
1382-
1383-
onBoardOrPortChange();
13841377
Sketch.buildSettingChanged();
1385-
rebuildImportMenu(Editor.importMenu);
1386-
rebuildExamplesMenu(Editor.examplesMenu);
13871378
}
13881379
};
13891380
subAction.putValue("board", boardId);
13901381
subAction.putValue("custom_menu_option", customMenuOption);
1391-
subAction.putValue("package", packageName);
1392-
subAction.putValue("platform", platformName);
13931382

13941383
if (!buttonGroupsMap.containsKey(menuId)) {
13951384
buttonGroupsMap.put(menuId, new ButtonGroup());

0 commit comments

Comments
 (0)