From 34b098fa2a8d6c2e4451d340555ad3f0fce6b31f Mon Sep 17 00:00:00 2001 From: philipp Date: Thu, 6 Jun 2024 17:16:47 +0200 Subject: [PATCH] cleaner cal --- src/model/event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/event.rs b/src/model/event.rs index 6a5aa10..4887952 100644 --- a/src/model/event.rs +++ b/src/model/event.rs @@ -371,7 +371,7 @@ WHERE trip_details.id=? name.push_str(&format!("• {} ", triptype.name)) } if let Some(notes) = tripdetails.notes { - if !notes.is_empty() { + if !notes.is_empty() && event.is_cancelled() { name.push_str(&format!("({notes}) ")) } }