mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Check if update is already prepared
This commit is contained in:
parent
339e9317e2
commit
bc52cafaa1
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue