mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
Use secondary action instead of close button, which fixes #2051.
This commit is contained in:
parent
26cdbbcb53
commit
3489b36194
1 changed files with 3 additions and 2 deletions
|
@ -116,13 +116,14 @@ public class PasswordView extends ActivatableView<GridPane, Void> {
|
|||
pwButton.setOnAction(e -> {
|
||||
if (!walletsManager.areWalletsEncrypted()) {
|
||||
new Popup<>().backgroundInfo(Res.get("password.backupReminder"))
|
||||
.closeButtonText(Res.get("password.backupWasDone"))
|
||||
.onClose(() -> onApplyPassword(busyAnimation, deriveStatusLabel))
|
||||
.secondaryActionButtonText(Res.get("password.backupWasDone"))
|
||||
.onSecondaryAction(() -> onApplyPassword(busyAnimation, deriveStatusLabel))
|
||||
.actionButtonTextWithGoTo("navigation.account.walletSeed")
|
||||
.onAction(() -> {
|
||||
navigation.setReturnPath(navigation.getCurrentPath());
|
||||
navigation.navigateTo(MainView.class, AccountView.class, SeedWordsView.class);
|
||||
})
|
||||
.width(800)
|
||||
.show();
|
||||
} else {
|
||||
onApplyPassword(busyAnimation, deriveStatusLabel);
|
||||
|
|
Loading…
Add table
Reference in a new issue