Skip to content

Commit 2057414

Browse files
ddamkeddamke
authored andcommitted
fix dialog behind KeepTime mainscreen
- Revalidated dialog order
1 parent c577d71 commit 2057414

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ private Optional<String> showDialogNoNoteSelected(Work currentWork) {
177177
noteDialog.setTitle("Empty Notes");
178178
noteDialog.setHeaderText("Switch projects without notes?");
179179
noteDialog.setContentText("What did you do for project '" + currentWork.getProject().getName() + "' ?");
180-
Stage importConfirmationStage = (Stage) noteDialog.getDialogPane().getScene().getWindow();
181-
importConfirmationStage.getIcons().add(new Image(Resources.getResource(RESOURCE.ICON_MAIN).toString()));
182-
180+
Stage noNoteSelectedStage = (Stage) noteDialog.getDialogPane().getScene().getWindow();
181+
noNoteSelectedStage.getIcons().add(new Image(Resources.getResource(RESOURCE.ICON_MAIN).toString()));
182+
noNoteSelectedStage.setAlwaysOnTop(true);
183183
final Optional<String> result = noteDialog.showAndWait();
184184
return result;
185185
}

0 commit comments

Comments
 (0)