diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-24 22:36:09 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-24 23:15:13 -0400 |
commit | 2be79f4cd0ee0e89c5cadf5121a8b979391d0d51 (patch) | |
tree | adbd77abb51ea2a4613c78d210896f1ed55b4498 /src/run.rs | |
parent | c3919c91a866a7fd520d7dcb8b99c7d4aafbbb93 (diff) |
major refactoring
- removed parent_list from JoshutoTab struct
- parent_list will behave much like previewing now where the contents
will be retrieved from the dictionary
- completely remove DirHistory struct in favour of trait implemenation
on top of HashMap
Diffstat (limited to 'src/run.rs')
-rw-r--r-- | src/run.rs | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -141,16 +141,6 @@ fn init_context(context: &mut JoshutoContext, view: &JoshutoView) { context.curr_tab_index = context.tabs.len() - 1; { let curr_tab = &mut context.tabs[context.curr_tab_index]; - if let Some(s) = curr_tab.curr_list.as_mut() { - if s.need_update() { - s.update_contents(&context.config_t.sort_option); - } - } - if let Some(s) = curr_tab.parent_list.as_mut() { - if s.need_update() { - s.update_contents(&context.config_t.sort_option); - } - } curr_tab.refresh( view, &context.config_t, |