reverted change from previous commit

This commit is contained in:
Sebastian Stenzel
2019-02-12 14:13:45 +01:00
parent 8e2d2b899e
commit a88bd81347

View File

@@ -236,7 +236,11 @@ public class UnlockController implements ViewController {
} else {
useCustomMountPoint.setVisible(true);
useCustomMountPoint.setSelected(vaultSettings.usesIndividualMountPath().get());
customMountPointLabel.setText(vaultSettings.getIndividualMountPath().orElse(localization.getString("unlock.label.chooseMountPath")));
if (Strings.isNullOrEmpty(vaultSettings.individualMountPath().get())) {
customMountPointLabel.setText(localization.getString("unlock.label.chooseMountPath"));
} else {
customMountPointLabel.setText(displayablePath(vaultSettings.individualMountPath().getValueSafe()));
}
}
// DOKANY-dependent controls: