From 4e4ad7099f4dd5147d3857d723150085272d0ea2 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 15 Oct 2024 03:00:12 +0200 Subject: [PATCH] fix(tasks): do not find children of closed tasks globally --- src/tasks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks.rs b/src/tasks.rs index f7937d1..5d78c12 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -694,7 +694,7 @@ impl TasksRelay { for task in self.tasks.values() { if task.get_filter_title().to_ascii_lowercase() == lowercase_arg && // exclude closed tasks and their subtasks - !self.traverse_up_from(Some(*task.get_id())).any(|t| t.pure_state() == State::Closed) { + !self.traverse_up_from(Some(*task.get_id())).any(|t| !t.pure_state().is_open()) { return vec![task.event.id]; } }