mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-01 17:47:30 +13:00
Small updater fixes [release]
This commit is contained in:
parent
d836bfcce6
commit
0c8a146096
2 changed files with 5 additions and 1 deletions
|
@ -77,6 +77,10 @@ public class App extends Application {
|
|||
var base = String.format(
|
||||
"X-Pipe Desktop (%s)", AppProperties.get().getVersion());
|
||||
var suffix = AppUpdater.get().getLastUpdateCheckResult().getValue() != null
|
||||
&& AppUpdater.get()
|
||||
.getLastUpdateCheckResult()
|
||||
.getValue()
|
||||
.isUpdate()
|
||||
? String.format(
|
||||
" (Update to %s available)",
|
||||
AppUpdater.get()
|
||||
|
|
|
@ -78,7 +78,7 @@ public class AppUpdater {
|
|||
AppCache.update("downloadedUpdate", n);
|
||||
});
|
||||
lastUpdateCheckResult.addListener((c, o, n) -> {
|
||||
if (n != null && downloadedUpdate.getValue() != null && n.getVersion().equals(downloadedUpdate.getValue().getVersion())) {
|
||||
if (n != null && downloadedUpdate.getValue() != null && n.isUpdate() && n.getVersion().equals(downloadedUpdate.getValue().getVersion())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue