Skip to content

Commit

Permalink
fix open link in about dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogefest committed Feb 20, 2021
1 parent 71344af commit 199c13b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/notepack/AboutDialogController.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions src/main/java/notepack/app/task/ShowApplicationInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void guiWork(TaskUtil taskUtil, App app) {

AboutDialogController ctrl = loader.getController();
ctrl.setTaskUtil(taskUtil);
ctrl.setHostServices(hostServices);

taskUtil.openPopup(pane);

Expand Down

0 comments on commit 199c13b

Please sign in to comment.