From 82ff5ddabe24eb3183566197f06adab5ffb86f04 Mon Sep 17 00:00:00 2001 From: infeo Date: Thu, 4 Jul 2019 14:07:21 +0200 Subject: [PATCH] due to change in type of winDriveLetters (from Character to Path) need addtional adjustment --- .../src/main/java/org/cryptomator/ui/model/DokanyVolume.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/ui/src/main/java/org/cryptomator/ui/model/DokanyVolume.java b/main/ui/src/main/java/org/cryptomator/ui/model/DokanyVolume.java index e24e49c08..4efab0f07 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/model/DokanyVolume.java +++ b/main/ui/src/main/java/org/cryptomator/ui/model/DokanyVolume.java @@ -64,11 +64,11 @@ public class DokanyVolume implements Volume { checkProvidedMountPoint(customMountPoint); return customMountPoint; } else if (!Strings.isNullOrEmpty(vaultSettings.winDriveLetter().get())) { - return Paths.get(vaultSettings.winDriveLetter().get().charAt(0) + ":\\"); + return Path.of(vaultSettings.winDriveLetter().get().charAt(0) + ":\\"); } else { //auto assign drive letter if (!windowsDriveLetters.getAvailableDriveLetters().isEmpty()) { - return Paths.get(windowsDriveLetters.getAvailableDriveLetters().iterator().next() + ":\\"); + return windowsDriveLetters.getAvailableDriveLetters().iterator().next(); } else { throw new VolumeException("No free drive letter available."); }