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) {
1473
1473
String [] split = selectBoard .split (":" );
1474
1474
Preferences .set ("target_package" , split [0 ]);
1475
1475
Preferences .set ("target_platform" , split [1 ]);
1476
- Preferences .set ("board" , split [2 ]);
1476
+ String boardId = split [2 ];
1477
+ Preferences .set ("board" , boardId );
1477
1478
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 );
1479
1488
1480
1489
onBoardOrPortChange ();
1481
1490
Sketch .buildSettingChanged ();
You can’t perform that action at this time.
0 commit comments