Allow show detials without any selected item

This commit is contained in:
Jeremy Soller 2024-10-02 13:44:50 -06:00
parent 9b8844a884
commit 9a02c0f9f4
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -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,