From 197cf0ba67923420b2471e50e3f65e3cfef1afe1 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Tue, 20 Oct 2026 01:48:33 +0700 Subject: [PATCH] Color books: one branch names an imported .acb or a temporary copy after the book (#3003) --- crates/engine/src/cmd/swatchlib.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/engine/src/cmd/swatchlib.rs b/crates/engine/src/cmd/swatchlib.rs index 3531329e0..f5d4b74a1 100644 --- a/crates/engine/src/cmd/swatchlib.rs +++ b/crates/engine/src/cmd/swatchlib.rs @@ -277,13 +277,7 @@ impl Libraries { let base = file_name(&p); // Color books (.acb) name the tab from the book title inside the file; a sandbox // copy of an import often lands as tmp….tmp.acb (#2996). - let file = if ext == "acb" { - library_file_name(lib.name(), &ext) - } else if temporary_library_file_name(&base) { - library_file_name(lib.name(), &ext) - } else { - base - }; + let file = if ext == "acb" || temporary_library_file_name(&base) { library_file_name(lib.name(), &ext) } else { base }; (file, read_file(&p)?) } None => (library_file_name(lib.name(), ext), encode(&lib)?),