From e1ec093429636e355ae6010d250cba12573d5b25 Mon Sep 17 00:00:00 2001 From: Jason Rodney Hansen Date: Sun, 13 Oct 2024 13:06:46 -0600 Subject: [PATCH] Fix clicking directories in nav bar in condensed mode This fixes the issue where the nav bar would close when clicking a directory in the nav bar when the window width was reduced to a size where only the nav bar was visible. --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 2de9750..b74c672 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1472,6 +1472,11 @@ impl Application for App { } } } + + // Prevent nav bar from closing when selecting a + // folder in condensed mode. + self.core_mut().nav_bar_set_toggled(true); + Command::none() } ProjectNode::File { path, .. } => {