mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-08-21 06:36:01 +00:00
Implement update button that updates and respawns the app
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user