Skip to content

Commit

Permalink
[calendar button] Hide future task immediately after threshold date i…
Browse files Browse the repository at this point in the history
…s set.

Signed-off-by: Ivan Tishchenko <[email protected]>
  • Loading branch information
t7ko committed Nov 30, 2021
1 parent ade76ef commit ca6239d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/chschmid/jdotxt/gui/controls/JdotxtTaskPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,11 @@ private Void setThresholdDate(LocalDate date) {
} else {
task.setThresholdDate(null);
}
textContent.setText(task.getText());
fireTaskUpdated(CONTENT);
// we're signaling CONTENT change, not CALENDAR, because, really, it's content
// that has changed after adding/changing/removing threshold date.
textContent.setText(task.getText());
fireEnterPressed(CALENDAR); // this will re-apply filters (hide future tasks)
return null;
}

Expand Down

0 comments on commit ca6239d

Please sign in to comment.