mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Added conditional so that libraries that have been removed can be replaced without confirmation
This commit is contained in:
@@ -433,7 +433,7 @@ public class LibraryManager {
|
||||
// library is installed twice without restarting the PDE.
|
||||
for (Library oldLib : oldLibs) {
|
||||
|
||||
if (oldLib.getName().equals(lib.getName())) {
|
||||
if (oldLib.getName().equals(lib.getName()) && oldLib.libraryFolder.exists()) {
|
||||
|
||||
int result = Base.showYesNoQuestion(editor, "Replace",
|
||||
"Replace existing \"" + oldLib.getName() + "\" library?",
|
||||
|
||||
Reference in New Issue
Block a user