Implement update button that updates and respawns the app

This commit is contained in:
Ralph Plawetzki
2025-07-30 19:21:34 +02:00
parent 89ce99deaf
commit 8e6500d93f
4 changed files with 103 additions and 16 deletions
@@ -13,6 +13,7 @@
<?import javafx.scene.control.Tooltip?>
<?import javafx.scene.text.TextFlow?>
<?import javafx.scene.text.Text?>
<?import javafx.scene.control.ProgressBar?>
<VBox xmlns:fx="http://javafx.com/fxml"
xmlns="http://javafx.com/javafx"
fx:controller="org.cryptomator.ui.preferences.UpdatesPreferencesController"
@@ -52,6 +53,16 @@
</graphic>
</Label>
<Hyperlink text="${linkLabel.value}" onAction="#visitDownloadsPage" textAlignment="CENTER" wrapText="true" styleClass="hyperlink-underline" visible="${controller.updateAvailable}" managed="${controller.updateAvailable}"/>
<Button text="Hello Flatpak!" onAction="#updateNow" visible="${controller.appUpdateAvailable}"/>
<Button fx:id="flatpakUpdateButton"
onAction="#updateFlatpakNow"
visible="${controller.appUpdateAvailable}">
</Button>
<ProgressBar fx:id="flatpakProgressBar"
maxWidth="200"
maxHeight="12"
visible="${controller.updatingFlatpak}"
managed="${controller.updatingFlatpak}"
progress="${controller.flatpakProgress}"/>
</VBox>
</VBox>