show pgp fingerprint in pgp verification signed by field tooltip

This commit is contained in:
Craig Raw 2024-03-07 08:21:46 +02:00
parent f0bd07b4b7
commit 2ef66d504f
2 changed files with 4 additions and 1 deletions

2
drongo

@ -1 +1 @@
Subproject commit 987aadd4a60aa65650ebec6bb23eed40c0031b22
Subproject commit 3b8435ca37d00d370d859fa9dbc1631d3cdcae45

View file

@ -154,6 +154,7 @@ public class DownloadVerifierDialog extends Dialog<ButtonBar.ButtonData> {
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<ButtonBar.ButtonData> {
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<ButtonBar.ButtonData> {
Throwable e = event.getSource().getException();
signedBy.setText(getDisplayMessage(e));
signedBy.setGraphic(GlyphUtils.getFailureGlyph());
signedBy.setTooltip(null);
clearReleaseFields();
});