Merge pull request #1558 from jpttrssn/exclude-trash
fix: exclude trash from multi-preview
This commit is contained in:
commit
ca15a1bde4
2 changed files with 22 additions and 1 deletions
8
justfile
8
justfile
|
|
@ -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}}
|
||||
|
|
|
|||
15
src/tab.rs
15
src/tab.rs
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue