forked from janek/mostr
fix(tasks): re-filter when reducing view depth
This commit is contained in:
parent
b974957bc9
commit
039c390c66
1 changed files with 6 additions and 1 deletions
|
@ -922,9 +922,14 @@ impl Tasks {
|
||||||
// Properties
|
// Properties
|
||||||
|
|
||||||
pub(crate) fn set_depth(&mut self, depth: i8) {
|
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}");
|
info!("Changed view depth to {depth}");
|
||||||
}
|
}
|
||||||
|
self.depth = depth;
|
||||||
|
}
|
||||||
|
|
||||||
pub(crate) fn get_columns(&mut self) -> &mut Vec<String> {
|
pub(crate) fn get_columns(&mut self) -> &mut Vec<String> {
|
||||||
&mut self.properties
|
&mut self.properties
|
||||||
|
|
Loading…
Add table
Reference in a new issue