fix: fallback to 0 if no path can be found for network directory
This commit is contained in:
parent
73e1d7ce52
commit
03ed0857d2
1 changed files with 3 additions and 0 deletions
|
|
@ -117,8 +117,11 @@ fn network_scan(uri: &str, sizes: IconSizes) -> Result<Vec<tab::Item>, String> {
|
|||
}
|
||||
Err(err) => {
|
||||
log::warn!("failed to read directory {:?}: {}", path, err);
|
||||
children_opt = Some(0);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
children_opt = Some(0);
|
||||
}
|
||||
}
|
||||
ItemMetadata::GvfsPath {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue