mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +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 -> {
|
pwButton.setOnAction(e -> {
|
||||||
if (!walletsManager.areWalletsEncrypted()) {
|
if (!walletsManager.areWalletsEncrypted()) {
|
||||||
new Popup<>().backgroundInfo(Res.get("password.backupReminder"))
|
new Popup<>().backgroundInfo(Res.get("password.backupReminder"))
|
||||||
.closeButtonText(Res.get("password.backupWasDone"))
|
.secondaryActionButtonText(Res.get("password.backupWasDone"))
|
||||||
.onClose(() -> onApplyPassword(busyAnimation, deriveStatusLabel))
|
.onSecondaryAction(() -> onApplyPassword(busyAnimation, deriveStatusLabel))
|
||||||
.actionButtonTextWithGoTo("navigation.account.walletSeed")
|
.actionButtonTextWithGoTo("navigation.account.walletSeed")
|
||||||
.onAction(() -> {
|
.onAction(() -> {
|
||||||
navigation.setReturnPath(navigation.getCurrentPath());
|
navigation.setReturnPath(navigation.getCurrentPath());
|
||||||
navigation.navigateTo(MainView.class, AccountView.class, SeedWordsView.class);
|
navigation.navigateTo(MainView.class, AccountView.class, SeedWordsView.class);
|
||||||
})
|
})
|
||||||
|
.width(800)
|
||||||
.show();
|
.show();
|
||||||
} else {
|
} else {
|
||||||
onApplyPassword(busyAnimation, deriveStatusLabel);
|
onApplyPassword(busyAnimation, deriveStatusLabel);
|
||||||
|
|
Loading…
Add table
Reference in a new issue