dialog: order by last modified by default, do not list directories first, part of #335

This commit is contained in:
Jeremy Soller 2024-09-11 09:22:36 -06:00
parent 1490820894
commit ff6f6c1e3a
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -545,9 +545,15 @@ impl Application for App {
},
});
let mut tab = Tab::new(location, TabConfig::default());
let tab_config = TabConfig {
view: tab::View::List,
folders_first: false,
sort_name: tab::HeadingOptions::Modified,
sort_direction: false,
..Default::default()
};
let mut tab = Tab::new(location, tab_config);
tab.dialog = Some(flags.kind.clone());
tab.config.view = tab::View::List;
let mut app = App {
core,