fix setpassword text button

This commit is contained in:
BtcContributor 2021-03-03 12:13:10 +01:00
parent 3b1158a908
commit ba5705ca74
No known key found for this signature in database
GPG key ID: DA582457496C7F6D
2 changed files with 5 additions and 4 deletions

View file

@ -3155,6 +3155,7 @@ password.forgotPassword=Forgot password?
password.backupReminder=Please note that when setting a wallet password all automatically created backups from the unencrypted wallet will be deleted.\n\n\
It is highly recommended that you make a backup of the application directory and write down your seed words before setting a password!
password.backupWasDone=I have already made a backup
password.setPassword=Set the password
seed.seedWords=Wallet seed words
seed.enterSeedWords=Enter wallet seed words

View file

@ -116,10 +116,10 @@ public class PasswordView extends ActivatableView<GridPane, Void> {
pwButton.setOnAction(e -> {
if (!walletsManager.areWalletsEncrypted()) {
new Popup().backgroundInfo(Res.get("password.backupReminder"))
.secondaryActionButtonText(Res.get("password.backupWasDone"))
.onSecondaryAction(() -> onApplyPassword(busyAnimation, deriveStatusLabel))
.actionButtonTextWithGoTo("navigation.account.walletSeed")
.onAction(() -> {
.actionButtonText(Res.get("password.setPassword"))
.onAction(() -> onApplyPassword(busyAnimation, deriveStatusLabel))
.secondaryActionButtonTextWithGoTo(Res.get("navigation.account.walletSeed"))
.onSecondaryAction(() -> {
navigation.setReturnPath(navigation.getCurrentPath());
navigation.navigateTo(MainView.class, AccountView.class, SeedWordsView.class);
})