From 2ef66d504f605930e78702cadf4ed1f79a16582e Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 7 Mar 2024 08:21:46 +0200 Subject: [PATCH] show pgp fingerprint in pgp verification signed by field tooltip --- drongo | 2 +- .../sparrowwallet/sparrow/control/DownloadVerifierDialog.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drongo b/drongo index 987aadd4..3b8435ca 160000 --- a/drongo +++ b/drongo @@ -1 +1 @@ -Subproject commit 987aadd4a60aa65650ebec6bb23eed40c0031b22 +Subproject commit 3b8435ca37d00d370d859fa9dbc1631d3cdcae45 diff --git a/src/main/java/com/sparrowwallet/sparrow/control/DownloadVerifierDialog.java b/src/main/java/com/sparrowwallet/sparrow/control/DownloadVerifierDialog.java index b0865121..ee3f8f92 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/DownloadVerifierDialog.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/DownloadVerifierDialog.java @@ -154,6 +154,7 @@ public class DownloadVerifierDialog extends Dialog { release.set(null); signedBy.setText(""); signedBy.setGraphic(null); + signedBy.setTooltip(null); releaseHash.setText(""); releaseHash.setGraphic(null); releaseVerified.setText(""); @@ -283,6 +284,7 @@ public class DownloadVerifierDialog extends Dialog { String message = result.userId() + " on " + signatureDateFormat.format(result.signatureTimestamp()) + (result.expired() ? " (key expired)" : ""); signedBy.setText(message); signedBy.setGraphic(result.expired() ? GlyphUtils.getWarningGlyph() : GlyphUtils.getSuccessGlyph()); + signedBy.setTooltip(new Tooltip(result.fingerprint())); if(!result.expired() && result.keySource() != PGPKeySource.USER) { publicKeyDisabled.set(true); @@ -303,6 +305,7 @@ public class DownloadVerifierDialog extends Dialog { Throwable e = event.getSource().getException(); signedBy.setText(getDisplayMessage(e)); signedBy.setGraphic(GlyphUtils.getFailureGlyph()); + signedBy.setTooltip(null); clearReleaseFields(); });