diff --git a/src/main/java/org/cryptomator/ui/vaultoptions/MountOptionsController.java b/src/main/java/org/cryptomator/ui/vaultoptions/MountOptionsController.java index 54bd0d53c..de5cbd1a7 100644 --- a/src/main/java/org/cryptomator/ui/vaultoptions/MountOptionsController.java +++ b/src/main/java/org/cryptomator/ui/vaultoptions/MountOptionsController.java @@ -109,7 +109,10 @@ public class MountOptionsController implements FxController { if (customMountFlagsCheckbox.isSelected()) { readOnlyCheckbox.setSelected(false); // to prevent invalid states mountFlagsField.textProperty().unbind(); - vaultSettings.mountFlags().set(defaultMountFlags.getValue()); + var mountFlags = vaultSettings.mountFlags().get(); + if(mountFlags == null || mountFlags.isBlank()) { + vaultSettings.mountFlags().set(defaultMountFlags.getValue()); + } mountFlagsField.textProperty().bindBidirectional(vaultSettings.mountFlags()); } else { mountFlagsField.textProperty().unbindBidirectional(vaultSettings.mountFlags());