Skip to content

Commit 4f34152

Browse files
author
Federico Fissore
committed
Boards manager: when upgrading, first remove, then install
1 parent 7dd6e8f commit 4f34152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/cc/arduino/contributions/packages/ui/ContributionManagerUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ public void onInstallPressed(final ContributedPlatform platformToInstall, final
161161
List<String> errors = new LinkedList<>();
162162
try {
163163
setProgressVisible(true, tr("Installing..."));
164-
errors.addAll(installer.install(platformToInstall, this::setProgress));
165164
if (platformToRemove != null && !platformToRemove.isReadOnly()) {
166165
errors.addAll(installer.remove(platformToRemove));
167166
}
167+
errors.addAll(installer.install(platformToInstall, this::setProgress));
168168
onIndexesUpdated();
169169
} catch (Exception e) {
170170
throw new RuntimeException(e);

0 commit comments

Comments
 (0)