This commit is contained in:
Breadway 2026-05-19 12:31:26 +08:00
parent 9ed275b6c5
commit 9b9705520e
10 changed files with 371 additions and 107 deletions

View file

@ -21,7 +21,13 @@ pub async fn run(mut rx: Receiver<NotifEvent>) {
while let Some(event) = rx.recv().await {
match event {
NotifEvent::Show { id, app_name, summary, body, timeout_ms } => {
NotifEvent::Show {
id,
app_name,
summary,
body,
timeout_ms,
} => {
// Replace existing card with same id (replaces_id case)
if let Some(old) = cards.borrow_mut().remove(&id) {
cards_box.remove(&old);