We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e896595 commit 040caadCopy full SHA for 040caad
app/src/processing/app/Base.java
@@ -2308,8 +2308,10 @@ public void handleAddLibrary() {
2308
}
2309
2310
String[] headers;
2311
- if (new File(libFolder, "library.properties").exists()) {
2312
- headers = BaseNoGui.headerListFromIncludePath(UserLibrary.create(libFolder).getSrcFolder());
+ File libProp = new File(libFolder, "library.properties");
+ File srcFolder = new File(libFolder, "src");
2313
+ if (libProp.exists() && srcFolder.isDirectory()) {
2314
+ headers = BaseNoGui.headerListFromIncludePath(srcFolder);
2315
} else {
2316
headers = BaseNoGui.headerListFromIncludePath(libFolder);
2317
0 commit comments