diff options
Diffstat (limited to 'src/file_browser.rs')
-rw-r--r-- | src/file_browser.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/file_browser.rs b/src/file_browser.rs index a499c5b..3a178b0 100644 --- a/src/file_browser.rs +++ b/src/file_browser.rs @@ -115,12 +115,8 @@ impl FileBrowser { pub fn update_preview(&mut self) { if self.columns.get_main_widget().content.len() == 0 { return } let file = self.columns.get_main_widget().selected_file().clone(); - //let preview = &mut self.columns.preview; - let coords = self.columns.preview.get_coordinates(); - let mut preview = crate::preview::AsyncPreviewer::new(); - preview.set_coordinates(&coords); + let preview = &mut self.columns.preview; preview.set_file(&file); - self.columns.preview = preview; } pub fn fix_selection(&mut self) { |