structured data editor
git clone https://git.lucas.co/cce-data-editor.git
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 {