mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Apply the change suggestion
This commit is contained in:
parent
9788e53f5c
commit
7b55b9cd00
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ impl Manager {
|
||||||
for u in selected {
|
for u in selected {
|
||||||
if self.mimetype.get(u).is_some() {
|
if self.mimetype.get(u).is_some() {
|
||||||
done.push((u.clone(), String::new()));
|
done.push((u.clone(), String::new()));
|
||||||
} else if self.guess_its_folder(u) {
|
} else if self.guess_folder(u) {
|
||||||
done.push((u.clone(), MIME_DIR.to_owned()));
|
done.push((u.clone(), MIME_DIR.to_owned()));
|
||||||
} else {
|
} else {
|
||||||
todo.push(u.clone());
|
todo.push(u.clone());
|
||||||
|
|
@ -107,7 +107,7 @@ impl Manager {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
fn guess_its_folder(&self, url: &Url) -> bool {
|
fn guess_folder(&self, url: &Url) -> bool {
|
||||||
let Some(p) = url.parent_url() else {
|
let Some(p) = url.parent_url() else {
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue