mirror of https://github.com/noisymime/Arduino.git
Don't throw exception if library is already installed
This commit is contained in:
parent
ada7b41063
commit
26ae4d13b8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue