Browse Source

Applied changes from code review.

JaniruTEC 3 years ago
parent
commit
080ddbbb01

+ 1 - 1
src/main/java/org/cryptomator/common/vaults/MountPointRequirement.java

@@ -7,7 +7,7 @@ package org.cryptomator.common.vaults;
 public enum MountPointRequirement {
 
 	/**
-	 * There must not be a parent folder and the actual Mountpoint must not exist.
+	 * The Mountpoint needs to be a filesystem root and must not exist.
 	 */
 	NO_PARENT_NO_MOUNT_POINT,
 

+ 1 - 1
src/main/java/org/cryptomator/ui/unlock/UnlockWorkflow.java

@@ -96,7 +96,7 @@ public class UnlockWorkflow extends Task<Boolean> {
 			showInvalidMountPointScene();
 		} else if (cause instanceof FileAlreadyExistsException) {
 			if (requirement == MountPointRequirement.NO_PARENT_NO_MOUNT_POINT) {
-				LOG.error("Unlock failed. Drive Letter already occupied: {}", cause.getMessage());
+				LOG.error("Unlock failed. Drive Letter already in use: {}", cause.getMessage());
 			} else {
 				LOG.error("Unlock failed. Mountpoint already exists: {}", cause.getMessage());
 			}

+ 1 - 1
src/main/resources/i18n/strings.properties

@@ -116,7 +116,7 @@ unlock.error.heading=Unable to unlock vault
 ### Invalid Mount Point
 unlock.error.invalidMountPoint.notExisting=Mount point "%s" is not a directory, not empty or does not exist.
 unlock.error.invalidMountPoint.existing=Mount point "%s" already exists or parent folder is missing.
-unlock.error.invalidMountPoint.driveLetterOccupied=Drive Letter "%s" is already occupied.
+unlock.error.invalidMountPoint.driveLetterOccupied=Drive Letter "%s" is already in use.
 
 # Lock
 ## Force