From bbf9379f5646205da80c351be2331074ca0088ff Mon Sep 17 00:00:00 2001 From: JaniruTEC Date: Mon, 17 Aug 2020 22:02:01 +0200 Subject: [PATCH] Changed DokanyVolumes and FuseVolumes to use mountnames Changed DokanyVolumes and FuseVolumes to use mountnames for automatic, folder-based mounting instead of ids. --- .../common/mountpoint/TemporaryMountPointChooser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java b/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java index 589c01872..7c3239fc1 100644 --- a/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java +++ b/main/commons/src/main/java/org/cryptomator/common/mountpoint/TemporaryMountPointChooser.java @@ -39,7 +39,7 @@ public class TemporaryMountPointChooser implements MountPointChooser { public Optional chooseMountPoint() { //Shouldn't throw, but let's keep #orElseThrow in case we made a mistake and the check in #isApplicable failed Path parent = this.environment.getMountPointsDir().orElseThrow(); - String basename = this.vault.getVaultSettings().getId(); + String basename = this.vault.getVaultSettings().mountName().get(); for (int i = 0; i < MAX_TMPMOUNTPOINT_CREATION_RETRIES; i++) { Path mountPoint = parent.resolve(basename + "_" + i); if (Files.notExists(mountPoint)) {