Explorar o código

fixing bug where stored password is not used

Armin Schrenk %!s(int64=4) %!d(string=hai) anos
pai
achega
959dee153e

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

@@ -50,7 +50,7 @@ abstract class UnlockModule {
 	@Named("savedPassword")
 	@UnlockScoped
 	static Optional<char[]> provideStoredPassword(KeychainManager keychain, @UnlockWindow Vault vault) {
-		if (keychain.isSupported()) {
+		if (!keychain.isSupported()) {
 			return Optional.empty();
 		} else {
 			try {