|
@@ -23,7 +23,6 @@ import javafx.beans.property.BooleanProperty;
|
|
|
import javafx.beans.property.ObjectProperty;
|
|
|
import javafx.beans.property.ReadOnlyBooleanProperty;
|
|
|
import javafx.beans.property.SimpleObjectProperty;
|
|
|
-import javafx.beans.property.StringProperty;
|
|
|
import java.io.IOException;
|
|
|
import java.nio.file.Files;
|
|
|
import java.nio.file.Path;
|
|
@@ -76,7 +75,7 @@ public class VaultModule {
|
|
|
@DefaultMountFlags
|
|
|
public StringBinding provideDefaultMountFlags(Settings settings, VaultSettings vaultSettings) {
|
|
|
ObjectProperty<VolumeImpl> preferredVolumeImpl = settings.preferredVolumeImpl();
|
|
|
- StringProperty mountName = vaultSettings.displayName();
|
|
|
+ StringBinding mountName = vaultSettings.mountName();
|
|
|
BooleanProperty readOnly = vaultSettings.usesReadOnlyMode();
|
|
|
|
|
|
return Bindings.createStringBinding(() -> {
|
|
@@ -96,7 +95,7 @@ public class VaultModule {
|
|
|
}
|
|
|
|
|
|
|
|
|
- private String getMacFuseDefaultMountFlags(StringProperty mountName, ReadOnlyBooleanProperty readOnly) {
|
|
|
+ private String getMacFuseDefaultMountFlags(StringBinding mountName, ReadOnlyBooleanProperty readOnly) {
|
|
|
assert SystemUtils.IS_OS_MAC_OSX;
|
|
|
StringBuilder flags = new StringBuilder();
|
|
|
if (readOnly.get()) {
|
|
@@ -148,7 +147,7 @@ public class VaultModule {
|
|
|
|
|
|
|
|
|
|
|
|
- private String getWindowsFuseDefaultMountFlags(StringProperty mountName, ReadOnlyBooleanProperty readOnly) {
|
|
|
+ private String getWindowsFuseDefaultMountFlags(StringBinding mountName, ReadOnlyBooleanProperty readOnly) {
|
|
|
assert SystemUtils.IS_OS_WINDOWS;
|
|
|
StringBuilder flags = new StringBuilder();
|
|
|
|