Selection help; Fixed find actions for selections

This commit is contained in:
veeso
2021-05-15 17:20:06 +02:00
parent 2b3acee97c
commit dd00e1f55a
4 changed files with 50 additions and 13 deletions

View File

@@ -130,11 +130,6 @@ impl FileTransferActivity {
// -- private
fn get_selected_index(&self, component: &str) -> SelectedEntryIndex {
eprintln!(
"INDEX FOR {}: {:?}",
component,
self.view.get_state(component)
);
match self.view.get_state(component) {
Some(Payload::One(Value::Usize(idx))) => SelectedEntryIndex::One(idx),
Some(Payload::Vec(files)) => {