Merge pull request #1558 from jpttrssn/exclude-trash

fix: exclude trash from multi-preview
This commit is contained in:
Levi Portenier 2026-03-02 11:49:53 -07:00 committed by GitHub
commit ca15a1bde4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 1 deletions

View file

@ -6248,7 +6248,20 @@ impl Tab {
);
let selected_items: Vec<&Item> = self.items_opt().map_or(Vec::new(), |items| {
items.iter().filter(|item| item.selected).collect()
items
.iter()
.filter(|item| {
if item.selected {
item.location_opt
.as_ref()
.map(Location::path_opt)
.flatten()
.is_some()
} else {
false
}
})
.collect()
});
let mut details = widget::column().spacing(space_xxxs);