From d628400f6a3f1aa7dcaeb2baeb144d53b00fa6a6 Mon Sep 17 00:00:00 2001 From: Eigeen Date: Mon, 28 Jul 2025 20:15:40 +0800 Subject: [PATCH] fix when patch not deleted when not exists higher patches --- src/app.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app.rs b/src/app.rs index 25c3f4b..d8d0ef7 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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"); } }