mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-19 13:54:23 +01:00
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);
|
||||
}
|
||||
|
||||
public void install(ContributedLibrary lib, ContributedLibrary replacedLib) throws Exception {
|
||||
public void install(ContributedLibrary lib, ContributedLibrary replacedLib) {
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user