mirror of https://github.com/bobwen-dev/hunter
recalculate number of visible files when filter is updated
This commit is contained in:
parent
84d7773205
commit
f10f7d5e32
|
@ -788,6 +788,8 @@ impl Files {
|
|||
// Do this first, so we know len() == 0 needs a placeholder
|
||||
self.remove_placeholder();
|
||||
|
||||
self.recalculate_len();
|
||||
|
||||
if self.len() == 0 {
|
||||
let placeholder = File::new_placeholder(&self.directory.path).unwrap();
|
||||
self.files.push(placeholder);
|
||||
|
|
Loading…
Reference in New Issue