diff --git a/justfile b/justfile index 5e13d5c..9522e98 100644 --- a/justfile +++ b/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}} diff --git a/src/tab.rs b/src/tab.rs index 6bdde1f..6eafca0 100644 --- a/src/tab.rs +++ b/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);