Reinitiate force lock

This commit is contained in:
Armin Schrenk
2023-01-11 16:40:14 +01:00
parent 8b9377cf4e
commit d93ef2e905
2 changed files with 6 additions and 5 deletions

View File

@@ -409,13 +409,14 @@ public class Vault {
}
/* TODO: reactivate/ needed at all?
public boolean supportsForcedUnmount() {
return volume.supportsForcedUnmount();
var mh = mountHandle.get();
if(mh == null) {
throw new IllegalStateException("Vault is not mounted");
};
return mountHandle.get().supportsUnmountForced();
}
*/
private record MountHandle(Mount mount, boolean supportsUnmountForced) {
}

View File

@@ -53,7 +53,7 @@ public class LockForcedController implements FxController {
}
public boolean isForceSupported() {
return false;//vault.supportsForcedUnmount(); TODO
return vault.supportsForcedUnmount();
}
}