Skip to content

Commit 0476ddd

Browse files
committed
fix: remove card stacks that don't have any cards
1 parent 6ff3e66 commit 0476ddd

File tree

1 file changed

+2
-0
lines changed
  • cosmic-applet-notifications/src

1 file changed

+2
-0
lines changed

cosmic-applet-notifications/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ impl Application for Notifications {
278278
HashMap::from_iter(vec![("more", c.1.len().saturating_sub(1))])
279279
);
280280
}
281+
self.cards.retain(|c| !c.1.is_empty());
282+
281283
Command::none()
282284
}
283285
},

0 commit comments

Comments
 (0)