From 9a02c0f9f4039b7a3424679e6e5c384b230aeb97 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 2 Oct 2024 13:44:50 -0600 Subject: [PATCH] Allow show detials without any selected item --- src/menu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu.rs b/src/menu.rs index fb501af..cfe7939 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -465,7 +465,7 @@ pub fn menu_bar<'a>( tab_opt.map_or(false, |tab| tab.config.folders_first), Action::ToggleFoldersFirst, ), - menu_button_optional(fl!("show-details"), Action::Preview, selected > 0), + menu::Item::Button(fl!("show-details"), Action::Preview), menu::Item::Divider, menu_button_optional(fl!("gallery-preview"), Action::Gallery, selected > 0), menu::Item::Divider,