From 25e12507105cd098caf26a9cefa54b1b3897ec73 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 22 Aug 2022 11:34:03 +0200 Subject: [PATCH] add context menu item in transaction diagram to show input and output addresses as qrs --- drongo | 2 +- .../sparrowwallet/sparrow/control/TransactionDiagram.java | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drongo b/drongo index 8cdea775..aa459d00 160000 --- a/drongo +++ b/drongo @@ -1 +1 @@ -Subproject commit 8cdea77562643edf9d460a594178c1f44deeb248 +Subproject commit aa459d0084b3cc72c49c8922d571338c4f5efaf4 diff --git a/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java b/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java index 9c3077f1..5da2c63b 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java @@ -1244,6 +1244,14 @@ public class TransactionDiagram extends GridPane { Clipboard.getSystemClipboard().setContent(content); }); getItems().add(copyAddress); + + MenuItem showAddress = new MenuItem("Show Address as QR"); + showAddress.setOnAction(event -> { + hide(); + QRDisplayDialog qrDisplayDialog = new QRDisplayDialog(address.toString()); + qrDisplayDialog.showAndWait(); + }); + getItems().add(showAddress); } MenuItem copySatsValue = new MenuItem("Copy Value in sats");