mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-22 15:21:04 +00:00
fix: show_hidden not working (#47)
This commit is contained in:
parent
f119489907
commit
2efe97d140
1 changed files with 10 additions and 1 deletions
|
|
@ -7,13 +7,22 @@ use tokio::fs;
|
|||
|
||||
use super::File;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Files {
|
||||
items: IndexMap<PathBuf, File>,
|
||||
pub sort: FilesSort,
|
||||
pub show_hidden: bool,
|
||||
}
|
||||
|
||||
impl Default for Files {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
items: Default::default(),
|
||||
sort: Default::default(),
|
||||
show_hidden: MANAGER.show_hidden,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Files {
|
||||
pub async fn read(paths: Vec<PathBuf>) -> BTreeMap<PathBuf, File> {
|
||||
let mut items = BTreeMap::new();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue