mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-06-28 19:10:57 +12:00
[release]
This commit is contained in:
parent
33836f8690
commit
0d3274b1a4
|
@ -52,7 +52,7 @@ public class LocalFileTransferStage {
|
||||||
items.add(item);
|
items.add(item);
|
||||||
executor.submit(() -> {
|
executor.submit(() -> {
|
||||||
try {
|
try {
|
||||||
FileUtils.forceMkdirParent(TEMP.toFile());
|
FileUtils.forceMkdir(TEMP.toFile());
|
||||||
try (var b = new BusyProperty(downloading)) {
|
try (var b = new BusyProperty(downloading)) {
|
||||||
FileSystemHelper.dropFilesInto(FileSystemHelper.getLocal(TEMP), List.of(entry), false);
|
FileSystemHelper.dropFilesInto(FileSystemHelper.getLocal(TEMP), List.of(entry), false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,11 @@ public class UpdateCheckComp extends SimpleComp {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void restart() {
|
private void restart() {
|
||||||
|
// Check if we're still on latest
|
||||||
|
if (!AppUpdater.get().isDownloadedUpdateStillLatest()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
AppUpdater.get().executeUpdateAndClose();
|
AppUpdater.get().executeUpdateAndClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ public class TerminalErrorHandler implements ErrorHandler {
|
||||||
try {
|
try {
|
||||||
AppUpdater.init();
|
AppUpdater.init();
|
||||||
var rel = AppUpdater.get().checkForUpdate(true);
|
var rel = AppUpdater.get().checkForUpdate(true);
|
||||||
if (rel.isUpdate()) {
|
if (rel != null && rel.isUpdate()) {
|
||||||
var update = AppWindowHelper.showBlockingAlert(alert -> {
|
var update = AppWindowHelper.showBlockingAlert(alert -> {
|
||||||
alert.setAlertType(Alert.AlertType.INFORMATION);
|
alert.setAlertType(Alert.AlertType.INFORMATION);
|
||||||
alert.setTitle(AppI18n.get("updateAvailableTitle"));
|
alert.setTitle(AppI18n.get("updateAvailableTitle"));
|
||||||
|
|
|
@ -101,8 +101,9 @@ public class AppUpdater {
|
||||||
ThreadHelper.sleep(Duration.ofMinutes(10).toMillis());
|
ThreadHelper.sleep(Duration.ofMinutes(10).toMillis());
|
||||||
event("Starting background updater thread");
|
event("Starting background updater thread");
|
||||||
while (true) {
|
while (true) {
|
||||||
if (INSTANCE.checkForUpdate(false) != null
|
var rel = INSTANCE.checkForUpdate(false);
|
||||||
&& AppPrefs.get().automaticallyUpdate().get()) {
|
if (rel != null
|
||||||
|
&& AppPrefs.get().automaticallyUpdate().get() && rel.isUpdate()) {
|
||||||
event("Performing background update");
|
event("Performing background update");
|
||||||
INSTANCE.downloadUpdate();
|
INSTANCE.downloadUpdate();
|
||||||
}
|
}
|
||||||
|
@ -226,7 +227,15 @@ public class AppUpdater {
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized boolean isDownloadedUpdateStillLatest() {
|
public synchronized boolean isDownloadedUpdateStillLatest() {
|
||||||
|
if (downloadedUpdate.getValue() == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var available = checkForUpdate(true);
|
var available = checkForUpdate(true);
|
||||||
|
if (available == null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return downloadedUpdate.getValue() != null
|
return downloadedUpdate.getValue() != null
|
||||||
&& available.getVersion().equals(downloadedUpdate.getValue().getVersion());
|
&& available.getVersion().equals(downloadedUpdate.getValue().getVersion());
|
||||||
}
|
}
|
||||||
|
|
5
dist/changelogs/0.5.28.md
vendored
Normal file
5
dist/changelogs/0.5.28.md
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
- Introduce new download functionality in the file browser
|
||||||
|
- Allow for the creation of desktop shortcuts on portable distributions as well
|
||||||
|
- Fix file sizes sometimes being incorrectly displayed
|
||||||
|
- Fix background updater downloading the same version
|
||||||
|
- Fix various small bugs
|
Loading…
Reference in a new issue