File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
cc/arduino/contributions/libraries Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,10 @@ private void parseIndex(File file) throws IOException {
102
102
}
103
103
104
104
public void setLibrariesFolders (List <File > _librariesFolders ) {
105
- librariesFolders = _librariesFolders ;
106
- rescanLibraries ();
105
+ if (librariesFolders != _librariesFolders && !librariesFolders .equals (_librariesFolders )) {
106
+ librariesFolders = _librariesFolders ;
107
+ rescanLibraries ();
108
+ }
107
109
}
108
110
109
111
public List <File > getLibrariesFolders () {
Original file line number Diff line number Diff line change @@ -679,9 +679,7 @@ static public void onBoardOrPortChange() {
679
679
// Libraries located in the latest folders on the list can override
680
680
// other libraries with the same name.
681
681
librariesIndexer .setSketchbookLibrariesFolder (getSketchbookLibrariesFolder ());
682
- if (librariesIndexer .getLibrariesFolders () == null || !librariesIndexer .getLibrariesFolders ().equals (librariesFolders )) {
683
- librariesIndexer .setLibrariesFolders (librariesFolders );
684
- }
682
+ librariesIndexer .setLibrariesFolders (librariesFolders );
685
683
686
684
populateImportToLibraryTable ();
687
685
}
You can’t perform that action at this time.
0 commit comments