add context menu item in transaction diagram to show input and output addresses as qrs

This commit is contained in:
Craig Raw 2022-08-22 11:34:03 +02:00
parent fad1dad76e
commit 25e1250710
2 changed files with 9 additions and 1 deletions

2
drongo

@ -1 +1 @@
Subproject commit 8cdea77562643edf9d460a594178c1f44deeb248
Subproject commit aa459d0084b3cc72c49c8922d571338c4f5efaf4

View file

@ -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");