Merge pull request #400 from francesco-gaglione/recent_section

Recents section
This commit is contained in:
Jeremy Soller 2024-09-10 10:02:13 -06:00 committed by GitHub
commit c4c92be708
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 210 additions and 3 deletions

View file

@ -97,7 +97,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());