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) {
169169 }
170170
171171 private void scanLibrary (UserLibraryFolder folderDesc ) throws IOException {
172- boolean readOnly = (folderDesc .location == Location .SKETCHBOOK );
173-
174172 // A library is considered "legacy" if it doesn't contains
175173 // a file called "library.properties"
176174 File check = new File (folderDesc .folder , "library.properties" );
@@ -201,7 +199,7 @@ private void scanLibrary(UserLibraryFolder folderDesc) throws IOException {
201199 lib .setTypes (foundLib .getTypes ());
202200 }
203201
204- if (readOnly && lib .getTypes () == null && ! lib . getDeclaredTypes (). isEmpty () ) {
202+ if (lib .getTypes () == null && folderDesc . location == Location . SKETCHBOOK ) {
205203 lib .setTypes (lib .getDeclaredTypes ());
206204 }
207205
You can’t perform that action at this time.
0 commit comments