From ca6239d905071daaee95230fc7bcf03fe4a12937 Mon Sep 17 00:00:00 2001 From: Ivan Tishchenko Date: Tue, 30 Nov 2021 07:24:12 +0300 Subject: [PATCH] [calendar button] Hide future task immediately after threshold date is set. Signed-off-by: Ivan Tishchenko --- src/com/chschmid/jdotxt/gui/controls/JdotxtTaskPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/chschmid/jdotxt/gui/controls/JdotxtTaskPanel.java b/src/com/chschmid/jdotxt/gui/controls/JdotxtTaskPanel.java index 13769d1..653d2b5 100644 --- a/src/com/chschmid/jdotxt/gui/controls/JdotxtTaskPanel.java +++ b/src/com/chschmid/jdotxt/gui/controls/JdotxtTaskPanel.java @@ -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; }