File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1473,9 +1473,18 @@ private void selectBoard(String selectBoard) {
14731473 String [] split = selectBoard .split (":" );
14741474 Preferences .set ("target_package" , split [0 ]);
14751475 Preferences .set ("target_platform" , split [1 ]);
1476- Preferences .set ("board" , split [2 ]);
1476+ String boardId = split [2 ];
1477+ Preferences .set ("board" , boardId );
14771478
1478- filterVisibilityOfSubsequentBoardMenus (split [2 ], 1 );
1479+ if (split .length > 3 ) {
1480+ String [] customsParts = split [3 ].split ("," );
1481+ for (String customParts : customsParts ) {
1482+ String [] keyValue = customParts .split ("=" );
1483+ Preferences .set ("custom_" + keyValue [0 ].trim (), boardId + "_" + keyValue [1 ].trim ());
1484+ }
1485+ }
1486+
1487+ filterVisibilityOfSubsequentBoardMenus (boardId , 1 );
14791488
14801489 onBoardOrPortChange ();
14811490 Sketch .buildSettingChanged ();
You can’t perform that action at this time.
0 commit comments