File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
arduino-core/src/cc/arduino/contributions/libraries Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -169,8 +169,6 @@ private void scanInstalledLibraries(UserLibraryFolder folderDesc) {
169
169
}
170
170
171
171
private void scanLibrary (UserLibraryFolder folderDesc ) throws IOException {
172
- boolean readOnly = (folderDesc .location == Location .SKETCHBOOK );
173
-
174
172
// A library is considered "legacy" if it doesn't contains
175
173
// a file called "library.properties"
176
174
File check = new File (folderDesc .folder , "library.properties" );
@@ -201,7 +199,7 @@ private void scanLibrary(UserLibraryFolder folderDesc) throws IOException {
201
199
lib .setTypes (foundLib .getTypes ());
202
200
}
203
201
204
- if (readOnly && lib .getTypes () == null && ! lib . getDeclaredTypes (). isEmpty () ) {
202
+ if (lib .getTypes () == null && folderDesc . location == Location . SKETCHBOOK ) {
205
203
lib .setTypes (lib .getDeclaredTypes ());
206
204
}
207
205
You can’t perform that action at this time.
0 commit comments