From 1fa3af8740ee7436a2e7d440ad42d83e8026dac4 Mon Sep 17 00:00:00 2001 From: radialmonster Date: Thu, 8 Oct 2026 16:22:59 -0400 Subject: [PATCH] LRC-LIB-LIBFOLDERS: the sidebar rename test builds its folder ids with forward slashes on Windows The folder tree writes paths with forward slashes and its widget ids carry them; the test put the temp folder in the id with backslashes. Found running cargo xtask ci on Windows. --- crates/ui-egui/src/tests_panels.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/tests_panels.rs b/crates/ui-egui/src/tests_panels.rs index ee4a0f8a..9a6023cb 100644 --- a/crates/ui-egui/src/tests_panels.rs +++ b/crates/ui-egui/src/tests_panels.rs @@ -377,7 +377,8 @@ fn a_renamed_folder_keeps_its_place_in_the_tree() { let _cleanup = Cleanup(base.clone()); std::fs::create_dir_all(base.join("pics/trip")).unwrap(); std::fs::create_dir_all(base.join("pics/home")).unwrap(); - let b = base.to_string_lossy().to_string(); + // the folder tree writes paths with forward slashes, and its widget ids carry them + let b = base.to_string_lossy().replace('\\', "/"); let mut h = folders_app(&[&format!("{b}/pics/trip/a.jpg"), &format!("{b}/pics/home/b.jpg")]); h.app.session.source = lightcraft_engine::LibrarySource::LibraryFolder; h.app.session.library_folder = Some(format!("{b}/pics/trip"));