Skip to content

Commit 6bfe877

Browse files
committed
Fixed check for referenced cores. See #1157
1 parent 9024fe4 commit 6bfe877

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/processing/app/Base.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,9 +1278,10 @@ public void rebuildBoardsMenu(JMenu toolsMenu, Editor editor) throws Exception {
12781278
continue;
12791279
boolean firstRefBoardBlock = true;
12801280
for (TargetBoard board : platf.getBoards().values()) {
1281-
if (board.getReferencedPackageId() == null)
1281+
String ref = board.getReferencedPackageId();
1282+
if (ref == null || !ref.equals(targetPackage.getId()))
12821283
continue;
1283-
1284+
12841285
// Add a separator from the previous platform
12851286
if (firstRefBoardBlock)
12861287
boardsMenu.add(new JSeparator());

0 commit comments

Comments
 (0)