|
@@ -3,6 +3,7 @@ package org.cryptomator.ui.vaultoptions;
|
|
|
import javafx.fxml.FXML;
|
|
|
import javafx.scene.control.CheckBox;
|
|
|
import javafx.scene.control.ChoiceBox;
|
|
|
+import javafx.scene.control.TextField;
|
|
|
import javafx.util.StringConverter;
|
|
|
import org.cryptomator.common.settings.UiTheme;
|
|
|
import org.cryptomator.common.settings.WhenUnlocked;
|
|
@@ -18,6 +19,7 @@ public class GeneralVaultOptionsController implements FxController {
|
|
|
private final Vault vault;
|
|
|
private final ResourceBundle resourceBundle;
|
|
|
|
|
|
+ public TextField vaultName;
|
|
|
public CheckBox unlockOnStartupCheckbox;
|
|
|
public ChoiceBox<WhenUnlocked> actionAfterUnlockChoiceBox;
|
|
|
|
|
@@ -29,6 +31,7 @@ public class GeneralVaultOptionsController implements FxController {
|
|
|
|
|
|
@FXML
|
|
|
public void initialize() {
|
|
|
+ vaultName.textProperty().bindBidirectional(vault.getVaultSettings().displayName());
|
|
|
unlockOnStartupCheckbox.selectedProperty().bindBidirectional(vault.getVaultSettings().unlockAfterStartup());
|
|
|
actionAfterUnlockChoiceBox.getItems().addAll(WhenUnlocked.values());
|
|
|
actionAfterUnlockChoiceBox.valueProperty().bindBidirectional(vault.getVaultSettings().actionAfterUnlock());
|