Skip to content

Commit

Permalink
Fix GUI show seed
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Dec 5, 2024
1 parent 6cc3833 commit 6a946a6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public WalletComponent(AWalletEntry initialWalletEntry) {

private void showSeed(ActionEvent e) {
if (walletEntry.isLocked()) {
if (!UnlockWalletDialog.offerUnlock(this,walletEntry)) return;;
if (!UnlockWalletDialog.offerUnlock(this,walletEntry)) return;
}

AKeyPair kp=walletEntry.getKeyPair();
Expand All @@ -143,6 +143,7 @@ private void showSeed(ActionEvent e) {
panel.add(Toolkit.withTitledBorder("Ed25519 Private Seed",new CodeLabel(kp.getSeed().toString())));
panel.add(Toolkit.makeNote("WARNING: keep this private, it can be used to control your account(s)"),"grow");
panel.setBorder(Toolkit.createDialogBorder());
JOptionPane.showMessageDialog(WalletComponent.this, panel,"Ed25519 Private Seed",JOptionPane.INFORMATION_MESSAGE);
} else {
JOptionPane.showMessageDialog(WalletComponent.this, "Keypair is locked, cannot access seed","Warning",JOptionPane.WARNING_MESSAGE);
}
Expand Down

0 comments on commit 6a946a6

Please sign in to comment.