fix: filter for items with paths in multi-preview

This commit is contained in:
Jonatan Pettersson 2026-01-23 14:25:03 +01:00
parent 8c3e26d0d0
commit b793d025c2

View file

@ -6042,7 +6042,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);