fix(tasks): re-filter when reducing view depth

This commit is contained in:
xeruf 2024-08-29 12:02:13 +03:00
parent b974957bc9
commit 039c390c66
1 changed files with 6 additions and 1 deletions

View File

@ -922,9 +922,14 @@ impl Tasks {
// Properties
pub(crate) fn set_depth(&mut self, depth: i8) {
self.depth = depth;
if depth < self.depth && !self.view.is_empty() {
self.view.clear();
info!("Cleared search and reduced view depth to {depth}");
} else {
info!("Changed view depth to {depth}");
}
self.depth = depth;
}
pub(crate) fn get_columns(&mut self) -> &mut Vec<String> {
&mut self.properties