From 199c13b6888108288cc351b5aa3f606072300aa0 Mon Sep 17 00:00:00 2001 From: Ogefest Date: Sat, 20 Feb 2021 19:15:08 +0100 Subject: [PATCH] fix open link in about dialog --- src/main/java/notepack/AboutDialogController.java | 4 ++++ src/main/java/notepack/app/task/ShowApplicationInfo.java | 1 + 2 files changed, 5 insertions(+) diff --git a/src/main/java/notepack/AboutDialogController.java b/src/main/java/notepack/AboutDialogController.java index c799df9..9a25fb1 100644 --- a/src/main/java/notepack/AboutDialogController.java +++ b/src/main/java/notepack/AboutDialogController.java @@ -33,6 +33,10 @@ public void initialize(URL url, ResourceBundle rb) { versionLabel.setText("Version: " + Version.app()); } + public void setHostServices(HostServices hostServices) { + this.hostServices = hostServices; + } + @FXML private void onCancel(ActionEvent event) { getTaskUtil().closePopup(); diff --git a/src/main/java/notepack/app/task/ShowApplicationInfo.java b/src/main/java/notepack/app/task/ShowApplicationInfo.java index 432c210..d6d1d40 100644 --- a/src/main/java/notepack/app/task/ShowApplicationInfo.java +++ b/src/main/java/notepack/app/task/ShowApplicationInfo.java @@ -37,6 +37,7 @@ public void guiWork(TaskUtil taskUtil, App app) { AboutDialogController ctrl = loader.getController(); ctrl.setTaskUtil(taskUtil); + ctrl.setHostServices(hostServices); taskUtil.openPopup(pane);