Skip to content

Commit

Permalink
Provide missing modal title
Browse files Browse the repository at this point in the history
  • Loading branch information
landry-soules committed Jul 2, 2018
1 parent ad7ba77 commit fe408c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public void init(Object... params) {
}
StageHelper.getInstance().setTitle((String) params[1], "message.title");
} else {
StageHelper.getInstance().setTitle("", "message.title");
message.setText(defaultErrorText);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ public void initialize(URL location, ResourceBundle resources) {

@Override
protected void doInit(Object... params) {
Platform.runLater(() -> message.setText(MessageFormat.format(
StageHelper.getInstance().setTitle(getApplicationName(), "feedback.title");
Platform.runLater(() ->
message.setText(MessageFormat.format(
ResourceBundle.getBundle("bundles/nexu").getString("feedback.message"),
ResourceBundle.getBundle("bundles/nexu").getString("button.report.incident"), getApplicationName())));
}
Expand Down

0 comments on commit fe408c7

Please sign in to comment.