fix when patch not deleted when not exists higher patches

This commit is contained in:
2025-07-28 20:15:40 +08:00
parent 18d8138dc4
commit d628400f6a

View File

@@ -550,6 +550,8 @@ I'm sure I've checked the list, press Enter to continue"#,
} else {
// no higher patches exist, safe to delete
fs::remove_file(file_path)?;
// remove from all_chunks
all_chunks.retain(|c| c != chunk_name);
println!(" Removed patch file");
}
}