Fix file name
This commit is contained in:
parent
908c14a5bc
commit
30671b86f7
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ pub(crate) async fn run(config: Config) -> Result<()> {
|
||||||
zenity.set_width(360);
|
zenity.set_width(360);
|
||||||
let choice = dialog::Question::new(&format!(
|
let choice = dialog::Question::new(&format!(
|
||||||
"Do you want to accept\n{}\n({} bytes)?",
|
"Do you want to accept\n{}\n({} bytes)?",
|
||||||
filename.display(),
|
filename.file_name().as_ref().unwrap().to_string_lossy(),
|
||||||
file_size
|
file_size
|
||||||
))
|
))
|
||||||
.title("Yodle!")
|
.title("Yodle!")
|
||||||
|
@ -136,7 +136,7 @@ pub(crate) async fn run(config: Config) -> Result<()> {
|
||||||
info!(
|
info!(
|
||||||
"{} failed: rejected {}",
|
"{} failed: rejected {}",
|
||||||
peer_addr,
|
peer_addr,
|
||||||
filename.file_name().as_ref().unwrap().to_string_lossy()
|
filename.display(),
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue