Add ability to remove files from Recents

This commit is contained in:
Jason Rodney Hansen 2025-07-11 08:18:19 -06:00 committed by Jeremy Soller
parent 5a01fb95ff
commit 54b884e5f8
6 changed files with 63 additions and 3 deletions

View file

@ -239,6 +239,12 @@ pub fn context_menu<'a>(
children.push(menu_item(fl!("add-to-sidebar"), Action::AddToSidebar).into());
}
children.push(divider::horizontal::light().into());
if matches!(tab.location, Location::Recents) {
children.push(
menu_item(fl!("remove-from-recents"), Action::RemoveFromRecents).into(),
);
children.push(divider::horizontal::light().into());
}
if selected_mount_point == 0 {
if modifiers.shift() && !modifiers.control() {
children.push(