Skip to content

Commit ca6239d

Browse files
committed
[calendar button] Hide future task immediately after threshold date is set.
Signed-off-by: Ivan Tishchenko <ivan.t7ko@gmail.com>
1 parent ade76ef commit ca6239d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/chschmid/jdotxt/gui/controls/JdotxtTaskPanel.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,10 +576,11 @@ private Void setThresholdDate(LocalDate date) {
576576
} else {
577577
task.setThresholdDate(null);
578578
}
579+
textContent.setText(task.getText());
579580
fireTaskUpdated(CONTENT);
580581
// we're signaling CONTENT change, not CALENDAR, because, really, it's content
581582
// that has changed after adding/changing/removing threshold date.
582-
textContent.setText(task.getText());
583+
fireEnterPressed(CALENDAR); // this will re-apply filters (hide future tasks)
583584
return null;
584585
}
585586

0 commit comments

Comments
 (0)