Closed hacknus closed 3 days ago
That's how it should work. I'll have to take a closer look tomorrow to see what's going wrong.
The issue is here in update_directory_content()
:
DirectoryContentState::Finished => {
if let Some(dir) = self.current_directory() {
let mut dir_entry = DirectoryEntry::from_path(&self.config, dir);
self.select_item(&mut dir_entry);
}
false
}
after the directory is loaded, it selects the directory and overrides the dropped file. I think we need to have an if-statement there or something... Do you have an idea?
Sorry, I noticed this a bit too late. I think we should select the item that we dropped. Right now it only opens up the folder or the parent folder (if we dropped a file). We somehow need to call
self.select_item()
but I'm not sure how we can access it?This here somehow only works if we drop the file a second time, after the first time it seems that it is only briefly selected and then cleared again. Do you have any idea, how we get the item here? We should also select the directory, if we are in the corresponding mode.