mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
hide alert on clicking link
This commit is contained in:
parent
10514b8039
commit
23f3ae51db
1 changed files with 1 additions and 0 deletions
|
@ -527,6 +527,7 @@ public class AppServices {
|
||||||
Label label = new Label();
|
Label label = new Label();
|
||||||
hyperlinkLabel.setPrefWidth(Math.max(360, TextUtils.computeTextWidth(label.getFont(), link, 0.0D) + 50));
|
hyperlinkLabel.setPrefWidth(Math.max(360, TextUtils.computeTextWidth(label.getFont(), link, 0.0D) + 50));
|
||||||
hyperlinkLabel.setOnAction(event -> {
|
hyperlinkLabel.setOnAction(event -> {
|
||||||
|
alert.close();
|
||||||
get().getApplication().getHostServices().showDocument(link);
|
get().getApplication().getHostServices().showDocument(link);
|
||||||
});
|
});
|
||||||
alert.getDialogPane().setContent(hyperlinkLabel);
|
alert.getDialogPane().setContent(hyperlinkLabel);
|
||||||
|
|
Loading…
Reference in a new issue