mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-17 02:01:27 +00:00
address TODOs
This commit is contained in:
@@ -107,7 +107,7 @@ public class Mounter {
|
||||
//mountpoint must exist
|
||||
throw new MountPointNotExistsException(e.getMessage());
|
||||
} else {
|
||||
//TODO: if (!canMountToDir && canMountToParent && !Files.notExists(userChosenMountPoint)) {
|
||||
//TODO: add specific exception for !canMountToDir && canMountToParent && !Files.notExists(userChosenMountPoint)
|
||||
throw new IllegalMountPointException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -345,10 +345,8 @@ public class Vault {
|
||||
public boolean supportsForcedUnmount() {
|
||||
var mh = mountHandle.get();
|
||||
if (mh == null) {
|
||||
//TODO: or return false?
|
||||
throw new IllegalStateException("Vault is not mounted");
|
||||
}
|
||||
;
|
||||
return mountHandle.get().supportsUnmountForced();
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ public class VolumePreferencesController implements FxController {
|
||||
|
||||
@Override
|
||||
public String toString(MountService provider) {
|
||||
return provider== null? "Automatic" : provider.displayName(); //TODO: adjust message
|
||||
return provider.displayName();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user