mirror of
https://codeberg.org/icewind/galton.git
synced 2026-06-03 10:24:07 +02:00
add target dir to notification
This commit is contained in:
parent
cf6a7cde42
commit
0d176e24d5
1 changed files with 5 additions and 2 deletions
|
|
@ -180,13 +180,16 @@ fn is_part(path: &Path) -> bool {
|
|||
|
||||
fn show_notification(source: PathBuf) {
|
||||
debug!(file = %source.display(), "showing notification for file");
|
||||
let parent = source.parent().unwrap();
|
||||
match Notification::new()
|
||||
.summary("Download moved")
|
||||
.appname("Galton")
|
||||
.body(&format!(
|
||||
"<a href=\"file://{}\">{}</a>",
|
||||
"<a href=\"file://{}\">{}</a> moved to <a href=\"file://{}\">{}</a>",
|
||||
source.display(),
|
||||
source.file_name().unwrap().to_string_lossy()
|
||||
source.file_name().unwrap().to_string_lossy(),
|
||||
parent.display(),
|
||||
parent.file_name().unwrap().to_string_lossy()
|
||||
))
|
||||
.hint(Hint::ActionIcons(true))
|
||||
.hint(Hint::Category("transfer.complete".into()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue