fixed bug in go_back

This commit is contained in:
rabite 2020-02-05 22:29:43 +01:00
parent a6c829e143
commit 353f6369c8
1 changed files with 1 additions and 1 deletions

View File

@ -708,9 +708,9 @@ impl FileBrowser {
pub fn take_left_files(&mut self) -> HResult<Files> {
let mut w = self.left_widget_mut()?;
w.content.len = 0;
//w.buffer.clear();
let files = std::mem::take(&mut w.content);
w.content.len = 0;
Ok(files)
}