Skip to content

Commit

Permalink
Use secondary action instead of close button, which fixes bisq-networ…
Browse files Browse the repository at this point in the history
  • Loading branch information
ripcurlx committed Dec 6, 2018
1 parent 26cdbbc commit 3489b36
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,14 @@ public void initialize() {
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);
Expand Down

0 comments on commit 3489b36

Please sign in to comment.