瀏覽代碼

MountOptions window: Reset to auto mount, if no dir selected

Armin Schrenk 2 年之前
父節點
當前提交
94c53989b1
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/java/org/cryptomator/ui/vaultoptions/MountOptionsController.java

+ 2 - 1
src/main/java/org/cryptomator/ui/vaultoptions/MountOptionsController.java

@@ -170,7 +170,8 @@ public class MountOptionsController implements FxController {
 		} catch (NoDirSelectedException e) {
 			if (!mountPointDirBtn.equals(oldToggle)) {
 				mountPointToggleGroup.selectToggle(oldToggle);
-
+			} else {
+				mountPointToggleGroup.selectToggle(mountPointAutoBtn);
 			}
 		}
 	}