File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public class Library extends LocalContribution {
2828 StringList packageList ;
2929
3030 /** Per-platform exports for this library. */
31- HashMap <String ,String []> exportList ;
31+ HashMap <String , String []> exportList ;
3232
3333 /** Applet exports (cross-platform by definition). */
3434 String [] appletExportList ;
Original file line number Diff line number Diff line change @@ -386,7 +386,18 @@ protected void updateContributionListing() {
386386
387387 List <Library > libraries =
388388 new ArrayList <Library >(editor .getMode ().contribLibraries );
389- libraries .addAll (editor .getMode ().coreLibraries );
389+
390+ // Only add core libraries that are installed in the sketchbook
391+ // https://github.com/processing/processing/issues/3688
392+ //libraries.addAll(editor.getMode().coreLibraries);
393+ final String sketchbookPath =
394+ Base .getSketchbookLibrariesFolder ().getAbsolutePath ();
395+ for (Library lib : editor .getMode ().coreLibraries ) {
396+ if (lib .getLibraryPath ().startsWith (sketchbookPath )) {
397+ libraries .add (lib );
398+ }
399+ }
400+
390401 contributions .addAll (libraries );
391402
392403 Base base = editor .getBase ();
You can’t perform that action at this time.
0 commit comments