mirror of
https://github.com/JoinMarket-Org/joinmarket-clientserver.git
synced 2026-08-18 13:17:51 +02:00
"Show QR code" only for "new" addresses
This commit is contained in:
parent
27c2cd6a4a
commit
334b34d77b
1 changed files with 4 additions and 2 deletions
|
|
@ -1171,8 +1171,10 @@ class JMWalletTab(QWidget):
|
|||
if address_valid:
|
||||
menu.addAction("Copy address to clipboard",
|
||||
lambda: app.clipboard().setText(txt))
|
||||
menu.addAction("Show QR code",
|
||||
lambda: self.openQRCodePopup(txt))
|
||||
# Show QR code option only for new addresses to avoid address reuse
|
||||
if item.text(3) == "new":
|
||||
menu.addAction("Show QR code",
|
||||
lambda: self.openQRCodePopup(txt))
|
||||
if xpub_exists:
|
||||
menu.addAction("Copy extended pubkey to clipboard",
|
||||
lambda: app.clipboard().setText(xpub))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue