cancel scans ignores scantypes of file

This commit is contained in:
epi 2023-07-11 05:14:33 -04:00
parent 8d0614b1a5
commit aea64324f7

View File

@ -360,7 +360,14 @@ impl FeroxScans {
sleep(menu_pause_duration);
continue;
}
u_scans.index(num).clone()
let selected = u_scans.index(num);
if matches!(selected.scan_type, ScanType::File) {
continue;
}
selected.clone()
}
Err(..) => continue,
};