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

@ -48,6 +48,10 @@ build-debug *args:
# Compiles with release profile
build-release *args: (build-debug '--release' args)
# Compiles applet with release profile
build-release-applet *args:
cargo build --package {{applet-name}} --release {{args}}
# Compiles release profile with vendored dependencies
build-vendored *args: vendor-extract (build-release '--frozen --offline' args)
@ -95,6 +99,10 @@ install:
install -Dm0644 "{{icons-src}}/$size/apps/{{APPID}}.svg" "{{icons-dst}}/$size/apps/{{APPID}}.svg"; \
done
# Installs applet files
install-applet:
install -Dm0755 {{applet-src}} {{applet-dst}}
# Uninstalls installed files
uninstall:
rm -f {{bin-dst}} {{applet-dst}}

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);