Skip to content

Commit

Permalink
Fix clicking directories in nav bar in condensed mode
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jasonrhansen authored and jackpot51 committed Oct 14, 2024
1 parent 5be715b commit e1ec093
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, .. } => {
Expand Down

0 comments on commit e1ec093

Please sign in to comment.