mirror of
https://github.com/cryptomator/cryptomator.git
synced 2024-11-27 05:50:26 +00:00
do not reset mountflags to default ones when window opens
This commit is contained in:
parent
94fe8ca449
commit
09d5f71335
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user