Skip to content

Commit feaa08c

Browse files
author
jantje
committed
Do not add libraries to projects when they are in creation
1 parent 21a16a1 commit feaa08c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

io.sloeber.core/src/io/sloeber/core/listeners/IndexerListener.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public class IndexerListener implements IIndexChangeListener, IIndexerStateListe
2929
@Override
3030
public void indexChanged(IIndexChangeEvent event) {
3131
IProject project = event.getAffectedProject().getProject();
32+
if (IndexerController.isPosponed(project)) {
33+
// Do not update libraries if project is in creation
34+
return;
35+
}
3236
try {
3337
if (project.hasNature(Const.ARDUINO_NATURE_ID)) {
3438
if (!newChangedProjects.contains(project)) {

0 commit comments

Comments
 (0)