Small updater fixes [release]

This commit is contained in:
crschnick 2023-04-04 19:39:10 +00:00
parent d836bfcce6
commit 0c8a146096
2 changed files with 5 additions and 1 deletions

View file

@ -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()

View file

@ -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;
}