Parcourir la source

Catch UnlockCancelled exception during unlock of health check

Armin Schrenk il y a 3 ans
Parent
commit
d2a3ce2474
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/main/java/org/cryptomator/ui/health/StartController.java

+ 1 - 1
src/main/java/org/cryptomator/ui/health/StartController.java

@@ -74,7 +74,7 @@ public class StartController implements FxController {
 		assert unverifiedVaultConfig.get() != null;
 		try {
 			keyLoadingStrategy.use(this::verifyVaultConfig);
-		} catch (VaultConfigLoadException e) {
+		} catch (VaultConfigLoadException | UnlockCancelledException e) {
 			throw new LoadingFailedException(e);
 		}
 	}