Skip to content

Commit ebee9bc

Browse files
committed
simplified dialog text
1 parent b691d6c commit ebee9bc

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,16 @@ private void changeProject(final Project newProject, final long minusSeconds) {
172172
if (currentWork != null && currentWork.getNotes().isEmpty()) {
173173
final TextInputDialog noteDialog = new TextInputDialog();
174174
noteDialog.setTitle("Empty Notes");
175-
noteDialog.setHeaderText(
176-
"You are About to switch Projects but your current work has no Notes associated with it.");
177-
noteDialog.setContentText("You can add Notes now to your work.\n Current Project: "
178-
+ model.activeWorkItem.get().getProject().getName());
175+
noteDialog.setHeaderText("Switch projects without notes?");
176+
noteDialog.setContentText(
177+
"What did you do for project '" + model.activeWorkItem.get().getProject().getName() + "' ?");
179178
noteDialog.initOwner(mainStage);
180179

181180
final Optional<String> result = noteDialog.showAndWait();
182181
if (result.isPresent()) {
183-
if (!result.get().equals("")) {
184-
currentWork.setNotes(result.get());
185-
}
186-
182+
currentWork.setNotes(result.get());
187183
} else {
184+
// cancel pressed
188185
return;
189186
}
190187
}

0 commit comments

Comments
 (0)