git.lucas.co / cce-data-editor
structured data editor
git clone https://git.lucas.co/cce-data-editor.git

commit82a953ca92755dbffe5afa47372486f0245c939f
parent1c3443a4d1
authorLucas Galante <[email protected]>
date2026-08-05 15:02
fix: toolbar file label shows the full path

Co-Authored-By: Claude Fable 5 <[email protected]>

 src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index ab48e22..5684670 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1767,7 +1767,7 @@ impl Application for DataEditorApp {
         // Toolbar file label — app chrome, not owned by any widget. Outdated
         // (changed on disk under local edits) renders in the highlight accent.
         let file_name_str = match &self.current_file_path {
-            Some(path) => path.file_name().unwrap_or_default().to_string_lossy().into_owned(),
+            Some(path) => path.display().to_string(),
             None => "Untitled".to_string(),
         };
         let (file_label, file_label_color) = if self.file_outdated {