Skip to content

Commit

Permalink
fix: Trash icons should show the trash menu
Browse files Browse the repository at this point in the history
Closes: pop-os#593
  • Loading branch information
joshuamegnauth54 committed Oct 14, 2024
1 parent 583d3df commit dcb1d8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ pub fn context_menu<'a>(

let mut selected_dir = 0;
let mut selected = 0;
let mut selected_trash = false;
let mut selected_types: Vec<Mime> = vec![];
tab.items_opt().map(|items| {
for item in items.iter() {
Expand All @@ -97,6 +98,9 @@ pub fn context_menu<'a>(
if item.metadata.is_dir() {
selected_dir += 1;
}
if item.location_opt == Some(Location::Trash) {
selected_trash = true;
}
selected_types.push(item.mime.clone());
}
}
Expand Down

0 comments on commit dcb1d8a

Please sign in to comment.