Просмотр исходного кода

Merge branch 'master' into develop

Sebastian Stenzel 4 лет назад
Родитель
Сommit
8d5fb14b50

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

@@ -31,7 +31,7 @@ public class UnlockSuccessController implements FxController {
 	private final VaultService vaultService;
 	private final ObjectProperty<ContentDisplay> revealButtonState;
 	private final BooleanProperty revealButtonDisabled;
-	
+
 	public CheckBox rememberChoiceCheckbox;
 
 	@Inject

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

@@ -95,7 +95,7 @@ public class UnlockWorkflow extends Task<Boolean> {
 			wipePassword(savedPassword.orElse(null));
 		}
 	}
-	
+
 	private boolean attemptUnlock() throws InterruptedException, IOException, Volume.VolumeException {
 		boolean proceed = password.get() != null || askForPassword(false) == PasswordEntry.PASSWORD_ENTERED;
 		while (proceed) {
@@ -117,7 +117,9 @@ public class UnlockWorkflow extends Task<Boolean> {
 			if (owner != null) {
 				window.setX(owner.getX() + (owner.getWidth() - window.getWidth()) / 2);
 				window.setY(owner.getY() + (owner.getHeight() - window.getHeight()) / 2);
-			} else window.centerOnScreen();
+			} else {
+				window.centerOnScreen();
+			}
 			if (animateShake) {
 				Animations.createShakeWindowAnimation(window).play();
 			}