Skip to content

Commit 17f2ebf

Browse files
ddamkeddamke
authored andcommitted
add icon to Export done dialog
1 parent eb01112 commit 17f2ebf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/de/doubleslash/keeptime/view/SettingsController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ private void initExportButton() {
450450
LOG.info("Export done.");
451451

452452
Alert informationDialog = new Alert(AlertType.INFORMATION);
453+
Stage informationStage = (Stage) informationDialog.getDialogPane().getScene().getWindow();
454+
informationStage.getIcons().add(new Image(Resources.getResource(RESOURCE.ICON_MAIN).toString()));
453455
informationDialog.setTitle("Export done");
454456
informationDialog.setHeaderText("The current data was exported.");
455457
informationDialog.getDialogPane().setContent(new Label("The data was exported to '\n" + fileToSave + "'."));

0 commit comments

Comments
 (0)