recent section

This commit is contained in:
Francesco Pio Gaglione 2024-08-16 14:42:09 +02:00
parent aebc652006
commit 056724268e
6 changed files with 167 additions and 16 deletions

View file

@ -92,7 +92,7 @@ pub fn context_menu<'a>(
let mut children: Vec<Element<_>> = Vec::new();
match tab.location {
Location::Path(_) | Location::Search(_, _) => {
Location::Path(_) | Location::Search(_, _) | Location::Recents => {
if selected > 0 {
if selected_dir == 1 && selected == 1 || selected_dir == 0 {
children.push(menu_item(fl!("open"), Action::Open).into());