formatted code

[ci skip]
This commit is contained in:
Sebastian Stenzel
2020-05-27 12:43:18 +02:00
parent 0664c670f7
commit 11e3ee8d90
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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();
}