Fixes
This commit is contained in:
parent
9ed275b6c5
commit
9b9705520e
10 changed files with 371 additions and 107 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue