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.
This commit is contained in:
Jason Rodney Hansen 2024-10-13 13:06:46 -06:00 committed by Jeremy Soller
parent 5be715bdd0
commit e1ec093429

View file

@ -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, .. } => {