From 0d176e24d573b479e28513abe207e99bb97b8a3a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 15 Apr 2026 00:01:05 +0200 Subject: [PATCH] add target dir to notification --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7a70e13..7cd15f3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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!( - "{}", + "{} moved to {}", 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()))