From e50c41aa247a9dd9f9ab6dae9d8f4a720701825a Mon Sep 17 00:00:00 2001 From: Josh Megnauth Date: Tue, 24 Mar 2026 19:48:49 -0400 Subject: [PATCH] fix: Respect show_recents conf in dialog Closes: #1698 --- src/dialog.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/dialog.rs b/src/dialog.rs index bcfac6c..80dbdda 100644 --- a/src/dialog.rs +++ b/src/dialog.rs @@ -889,11 +889,13 @@ impl App { fn update_nav_model(&mut self) { let mut nav_model = segmented_button::ModelBuilder::default(); - nav_model = nav_model.insert(|b| { - b.text(fl!("recents")) - .icon(widget::icon::from_name("document-open-recent-symbolic")) - .data(Location::Recents) - }); + if self.flags.config.show_recents { + nav_model = nav_model.insert(|b| { + b.text(fl!("recents")) + .icon(widget::icon::from_name("document-open-recent-symbolic")) + .data(Location::Recents) + }); + } for favorite in &self.flags.config.favorites { if let Some(path) = favorite.path_opt() {