mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-31 20:52:13 +01:00
Fixed error in cmd-line lib installer
This commit is contained in:
parent
fee5848a02
commit
8d27171b74
@ -359,7 +359,7 @@ public class Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Optional<ContributedLibrary> mayInstalled = indexer.getIndex().getInstalled(libraryToInstallParts[0]);
|
Optional<ContributedLibrary> mayInstalled = indexer.getIndex().getInstalled(libraryToInstallParts[0]);
|
||||||
if (mayInstalled.isPresent() && mayInstalled.get().isIDEBuiltIn()) {
|
if (mayInstalled.isPresent() && selected.isIDEBuiltIn()) {
|
||||||
libraryInstaller.remove(mayInstalled.get(), progressListener);
|
libraryInstaller.remove(mayInstalled.get(), progressListener);
|
||||||
} else {
|
} else {
|
||||||
libraryInstaller.install(selected, mayInstalled, progressListener);
|
libraryInstaller.install(selected, mayInstalled, progressListener);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user