~exprez135/cryptomator-libre

eb5aa4ee44b32bcaa6cc1842104eec3df5c5e6c3 — Armin Schrenk 1 year, 6 months ago adb09a0
remove unnecessary binding
M main/ui/src/main/java/org/cryptomator/ui/addvaultwizard/CreateNewVaultLocationController.java => main/ui/src/main/java/org/cryptomator/ui/addvaultwizard/CreateNewVaultLocationController.java +4 -6
@@ 48,7 48,6 @@ public class CreateNewVaultLocationController implements FxController {
	private final StringProperty vaultName;
	private final ResourceBundle resourceBundle;
	private final BooleanBinding validVaultPath;
	private final BooleanBinding invalidVaultPath;
	private final BooleanProperty usePresetPath;
	private final StringProperty warningText;



@@ 71,7 70,6 @@ public class CreateNewVaultLocationController implements FxController {
		this.vaultName = vaultName;
		this.resourceBundle = resourceBundle;
		this.validVaultPath = Bindings.createBooleanBinding(this::isValidVaultPath, vaultPath);
		this.invalidVaultPath = validVaultPath.not();
		this.usePresetPath = new SimpleBooleanProperty();
		this.warningText = new SimpleStringProperty();
	}


@@ 153,12 151,12 @@ public class CreateNewVaultLocationController implements FxController {
		return vaultPath;
	}

	public BooleanBinding invalidVaultPathProperty() {
		return invalidVaultPath;
	public BooleanBinding validVaultPathProperty() {
		return validVaultPath;
	}

	public Boolean getInvalidVaultPath() {
		return invalidVaultPath.get();
	public Boolean getValidVaultPath() {
		return validVaultPath.get();
	}

	public LocationPresets getLocationPresets() {

M main/ui/src/main/resources/fxml/addvault_new_location.fxml => main/ui/src/main/resources/fxml/addvault_new_location.fxml +1 -1
@@ 60,7 60,7 @@
		<ButtonBar buttonMinWidth="120" buttonOrder="B+X">
			<buttons>
				<Button text="%generic.button.back" ButtonBar.buttonData="BACK_PREVIOUS" onAction="#back"/>
				<Button text="%generic.button.next" ButtonBar.buttonData="NEXT_FORWARD" onAction="#next" defaultButton="true" disable="${controller.invalidVaultPath}"/>
				<Button text="%generic.button.next" ButtonBar.buttonData="NEXT_FORWARD" onAction="#next" defaultButton="true" disable="${!controller.validVaultPath}"/>
			</buttons>
		</ButtonBar>
	</children>