From 23f3ae51dbac8100d826dbcf050c8e25f2363c72 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 5 May 2021 14:43:33 +0200 Subject: [PATCH] hide alert on clicking link --- src/main/java/com/sparrowwallet/sparrow/AppServices.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppServices.java b/src/main/java/com/sparrowwallet/sparrow/AppServices.java index 6f5f3457..e04638ef 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppServices.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppServices.java @@ -527,6 +527,7 @@ public class AppServices { Label label = new Label(); hyperlinkLabel.setPrefWidth(Math.max(360, TextUtils.computeTextWidth(label.getFont(), link, 0.0D) + 50)); hyperlinkLabel.setOnAction(event -> { + alert.close(); get().getApplication().getHostServices().showDocument(link); }); alert.getDialogPane().setContent(hyperlinkLabel);