Check if update is already prepared

This commit is contained in:
crschnick 2023-04-25 09:58:53 +00:00
parent 339e9317e2
commit bc52cafaa1

View file

@ -155,6 +155,15 @@ public abstract class UpdateHandler {
return;
}
if (preparedUpdate.getValue() != null) {
if (lastUpdateCheckResult
.getValue()
.getVersion()
.equals(preparedUpdate.getValue().getVersion())) {
return;
}
}
try (var ignored = new BusyProperty(busy)) {
event("Performing update download ...");
prepareUpdateImpl();