Notification daemon #55

Merged
mars merged 13 commits from notifications into main 2022-12-07 22:18:19 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit a6b675dd11 - Show all commits

View File

@ -46,9 +46,9 @@ impl Notifications {
timeout: i32,
) -> u32 {
let contents = Contents {
app_name: Some(app_name).filter(String::is_empty),
app_name: Some(app_name).filter(|s| !s.is_empty()),
summary,
body: Some(body).filter(String::is_empty),
body: Some(body).filter(|s| !s.is_empty()),
timeout: Some(timeout).filter(|t| *t == 0),
};