Skip to content

Commit 0751b3f

Browse files
ddamkeddamke
authored andcommitted
remove initOwner(mainstage) from all dialogs
-To show different Logo for Dialogs
1 parent f58ecd7 commit 0751b3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ private Optional<String> showDialogNoNoteSelected(Work currentWork) {
176176
noteDialog.setTitle("Empty Notes");
177177
noteDialog.setHeaderText("Switch projects without notes?");
178178
noteDialog.setContentText("What did you do for project '" + currentWork.getProject().getName() + "' ?");
179-
noteDialog.initOwner(mainStage);
179+
Stage importConfirmationStage = (Stage) noteDialog.getDialogPane().getScene().getWindow();
180+
importConfirmationStage.getIcons().add(new Image(Resources.getResource(RESOURCE.ICON_MAIN).toString()));
180181

181182
final Optional<String> result = noteDialog.showAndWait();
182183
return result;

0 commit comments

Comments
 (0)