VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Color books: one branch names an imported .acb or a temporary copy after the book (#3003)
bflatastic197cf0ba6792
diff --git a/crates/engine/src/cmd/swatchlib.rs b/crates/engine/src/cmd/swatchlib.rsindex 3531329e0..f5d4b74a1 100644--- a/crates/engine/src/cmd/swatchlib.rs+++ b/crates/engine/src/cmd/swatchlib.rs@@ -277,13 +277,7 @@ impl<L: LibraryFile> Libraries<L> {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)?),