소스 검색

fix for more consistent ui

infeo 6 년 전
부모
커밋
ffb6cc354b
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 0
      main/ui/src/main/java/org/cryptomator/ui/controllers/UnlockController.java
  2. 1 1
      main/ui/src/main/resources/fxml/unlock.fxml

+ 5 - 0
main/ui/src/main/java/org/cryptomator/ui/controllers/UnlockController.java

@@ -359,6 +359,11 @@ public class UnlockController implements ViewController {
 		}
 	}
 
+	@FXML
+	public void didClickCustomMountPointCheckbox() {
+		useCustomWinDriveLetter.setSelected(vault.getWinDriveLetter() != null);
+	}
+
 	/**
 	 * Converts 'C' to "C:" to translate between model and GUI.
 	 */

+ 1 - 1
main/ui/src/main/resources/fxml/unlock.fxml

@@ -76,7 +76,7 @@
 		<CheckBox fx:id="useReadOnlyMode" text="%unlock.label.useReadOnlyMode"/>
 
 		<!-- Custom Mount Point -->
-		<CheckBox fx:id="useCustomMountPoint" text="%unlock.label.useOwnMountPath"/>
+		<CheckBox fx:id="useCustomMountPoint" text="%unlock.label.useOwnMountPath" onAction="#didClickCustomMountPointCheckbox"/>
 		<HBox fx:id="customMountPoint" spacing="6" alignment="BASELINE_LEFT" >
 			<padding>
 				<Insets left="20.0"/>