Skip to content

Commit 7dd926e

Browse files
committed
Set the window title by the file name. Closes #15.
1 parent d3383a7 commit 7dd926e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src-tauri/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ fn open_file(file_path: &PathBuf, window: &Window) -> Result<()> {
2929
let commit_list = commands::get_commit_list(file_path);
3030

3131
window.emit_all("openFile", FileInfo { file_path: file_path.clone(), commit_list })?;
32+
window.set_title(file_path.file_name().unwrap().to_str().unwrap())?;
3233

3334
Ok(())
3435
}

0 commit comments

Comments
 (0)