From 6a946a68c7e1b1fa2a9fef1e3a2ee138fb608aeb Mon Sep 17 00:00:00 2001 From: mikera Date: Thu, 5 Dec 2024 02:44:31 +0000 Subject: [PATCH] Fix GUI show seed --- convex-gui/src/main/java/convex/gui/keys/WalletComponent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convex-gui/src/main/java/convex/gui/keys/WalletComponent.java b/convex-gui/src/main/java/convex/gui/keys/WalletComponent.java index b41f0e083..e08e2923b 100644 --- a/convex-gui/src/main/java/convex/gui/keys/WalletComponent.java +++ b/convex-gui/src/main/java/convex/gui/keys/WalletComponent.java @@ -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(); @@ -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); }