hide alert on clicking link

This commit is contained in:
Craig Raw 2021-05-05 14:43:33 +02:00
parent 10514b8039
commit 23f3ae51db

View file

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