fileModel: Skip hidden files

Closes #179
This commit is contained in:
Gage Berz 2023-05-17 15:49:13 +00:00 • committed by Sophie Herold
parent 7031b04d8b
commit 0679d08c22

View file

@ -121,7 +121,7 @@ impl LpFileModel {
if let Ok(info) = info { if let Ok(info) = info {
if let Some(content_type) = info.content_type().map(|t| t.to_string()) { if let Some(content_type) = info.content_type().map(|t| t.to_string()) {
// Filter out non-images; For now we support "all" image types. // Filter out non-images; For now we support "all" image types.
if content_type.starts_with("image/") { if content_type.starts_with("image/") && !info.is_hidden() {
let file = directory.child(info.name()); let file = directory.child(info.name());
files.insert(file.uri(), file); files.insert(file.uri(), file);
} }