mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Fixed check for referenced cores. See #1157
This commit is contained in:
parent
9024fe455c
commit
6bfe877c45
@ -1278,9 +1278,10 @@ public class Base {
|
|||||||
continue;
|
continue;
|
||||||
boolean firstRefBoardBlock = true;
|
boolean firstRefBoardBlock = true;
|
||||||
for (TargetBoard board : platf.getBoards().values()) {
|
for (TargetBoard board : platf.getBoards().values()) {
|
||||||
if (board.getReferencedPackageId() == null)
|
String ref = board.getReferencedPackageId();
|
||||||
|
if (ref == null || !ref.equals(targetPackage.getId()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Add a separator from the previous platform
|
// Add a separator from the previous platform
|
||||||
if (firstRefBoardBlock)
|
if (firstRefBoardBlock)
|
||||||
boardsMenu.add(new JSeparator());
|
boardsMenu.add(new JSeparator());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user