Skip to content

Commit 096e545

Browse files
committed
Examples of arch-independent libs from Arduino goes into Examples for any board
The other cases remain unchanged
1 parent 821ee53 commit 096e545

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/src/processing/app/Base.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,13 @@ public void rebuildExamplesMenu(JMenu menu) {
12051205
// Sketchbook Libraries (including incompatible)
12061206
} else if (libraryLocation.equals(sketchbookLibraryPath)) {
12071207
if (compatible) {
1208-
sketchbookLibs.add(lib);
1208+
// libraries promoted from sketchbook (behave as builtin)
1209+
if (lib.getTypes() != null && lib.getTypes().contains("Arduino")
1210+
&& lib.getArchitectures().contains("*")) {
1211+
ideLibs.add(lib);
1212+
} else {
1213+
sketchbookLibs.add(lib);
1214+
}
12091215
} else {
12101216
sketchbookIncompatibleLibs.add(lib);
12111217
}

0 commit comments

Comments
 (0)