Browse Source

hide alert on clicking link

terminal
Craig Raw 4 years ago
parent
commit
23f3ae51db
  1. 1
      src/main/java/com/sparrowwallet/sparrow/AppServices.java

1
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);

Loading…
Cancel
Save