~exprez135/cryptomator-libre

22859c9ffab566ab3f359c0c097415ebb5da09ab — Martin Beyer 1 year, 6 months ago 2918215
Fixes #1082 Illegal mount options cannot be selected (WebDav + Windows)

By adding the visible and managed flags to the corresponding fxml tags, it is no longer possible to select illegal combinations.
1 files changed, 3 insertions(+), 3 deletions(-)

M main/ui/src/main/resources/fxml/vault_options_mount.fxml
M main/ui/src/main/resources/fxml/vault_options_mount.fxml => main/ui/src/main/resources/fxml/vault_options_mount.fxml +3 -3
@@ 30,7 30,7 @@

		<CheckBox fx:id="readOnlyCheckbox" text="%vaultOptions.mount.readonly"/>

		<CheckBox fx:id="customMountFlagsCheckbox" text="%vaultOptions.mount.customMountFlags" onAction="#toggleUseCustomMountFlags"/>
		<CheckBox fx:id="customMountFlagsCheckbox" text="%vaultOptions.mount.customMountFlags" onAction="#toggleUseCustomMountFlags" visible="${!controller.webDavAndWindows}" managed="${!controller.webDavAndWindows}"/>

		<TextField fx:id="mountFlags" HBox.hgrow="ALWAYS" maxWidth="Infinity">
			<VBox.margin>


@@ 48,7 48,7 @@
			<RadioButton toggleGroup="${mountPoint}" fx:id="mountPointWinDriveLetter" text="%vaultOptions.mount.mountPoint.driveLetter"/>
			<ChoiceBox fx:id="driveLetterSelection" disable="${!mountPointWinDriveLetter.selected}"/>
		</HBox>
		<HBox spacing="6" alignment="CENTER_LEFT">
		<HBox spacing="6" alignment="CENTER_LEFT" visible="${!controller.webDavAndWindows}" managed="${!controller.webDavAndWindows}">
			<RadioButton toggleGroup="${mountPoint}" fx:id="mountPointCustomDir" text="%vaultOptions.mount.mountPoint.custom"/>
			<Button text="%vaultOptions.mount.mountPoint.directoryPickerButton" onAction="#chooseCustomMountPoint" contentDisplay="LEFT" disable="${!mountPointCustomDir.selected}">
				<graphic>


@@ 56,7 56,7 @@
				</graphic>
			</Button>
		</HBox>
		<TextField text="${controller.customMountPath}" visible="${mountPointCustomDir.selected}" maxWidth="Infinity" disable="true">
		<TextField text="${controller.customMountPath}" visible="${mountPointCustomDir.selected}" maxWidth="Infinity" disable="true" visible="${!controller.webDavAndWindows}" managed="${!controller.webDavAndWindows}">
			<VBox.margin>
				<Insets left="24"/>
			</VBox.margin>