Skip to content

Commit 81dfa1f

Browse files
committed
feat: add starting folder as tooltip
1 parent 7fece02 commit 81dfa1f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/app.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,11 @@ impl LogViewerApp {
648648

649649
if self.show_last_filename {
650650
if let Some(filename) = self.last_filename.lock().unwrap().as_ref() {
651-
ui.label(format!("Filename: {}", filename.display()));
651+
let label = ui.label(format!("Filename: {}", filename.display()));
652+
#[cfg(not(target_arch = "wasm32"))]
653+
if let Some(folder) = self.start_open_path.lock().unwrap().as_ref() {
654+
label.on_hover_text(folder.display().to_string());
655+
}
652656
}
653657
}
654658
if let Some(data) = self.data.as_ref() {

0 commit comments

Comments
 (0)