Default to list view

This commit is contained in:
Jeremy Soller 2024-09-17 11:41:14 -06:00
parent de08823052
commit 0fe302a524
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
2 changed files with 5 additions and 2 deletions

View file

@ -487,7 +487,10 @@ impl App {
let mut tab = Tab::new(location.clone(), self.config.tab); let mut tab = Tab::new(location.clone(), self.config.tab);
tab.mode = match self.mode { tab.mode = match self.mode {
Mode::App => tab::Mode::App, Mode::App => tab::Mode::App,
Mode::Desktop => tab::Mode::Desktop, Mode::Desktop => {
tab.config.view = tab::View::Grid;
tab::Mode::Desktop
}
}; };
let entity = self let entity = self
.tab_model .tab_model

View file

@ -168,7 +168,7 @@ pub struct TabConfig {
impl Default for TabConfig { impl Default for TabConfig {
fn default() -> Self { fn default() -> Self {
Self { Self {
view: View::Grid, view: View::List,
folders_first: true, folders_first: true,
show_hidden: false, show_hidden: false,
sort_name: HeadingOptions::Name, sort_name: HeadingOptions::Name,