mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Don't throw exception if library is already installed
This commit is contained in:
@ -97,9 +97,10 @@ public class LibraryInstaller {
|
|||||||
rescanLibraryIndex(progress);
|
rescanLibraryIndex(progress);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void install(ContributedLibrary lib, ContributedLibrary replacedLib) throws Exception {
|
public void install(ContributedLibrary lib, ContributedLibrary replacedLib) {
|
||||||
if (lib.isInstalled()) {
|
if (lib.isInstalled()) {
|
||||||
throw new Exception(_("Library is already installed!"));
|
System.out.println(_("Library is already installed: \"" + lib.getName() + "\""));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final MultiStepProgress progress = new MultiStepProgress(3);
|
final MultiStepProgress progress = new MultiStepProgress(3);
|
||||||
|
Reference in New Issue
Block a user