Fix workspace update notifications not being suppressed (#30180)

Follow-up of https://github.com/zed-industries/zed/pull/30015

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2025-05-07 23:39:31 +03:00 committed by GitHub
parent 3339c84cdd
commit 011aa715cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -811,6 +811,13 @@ pub fn show_app_notification<V: Notification + 'static>(
}
})
.detach();
cx.subscribe(&notification, {
let id = id.clone();
move |workspace: &mut Workspace, _, _: &SuppressEvent, cx| {
workspace.suppress_notification(&id, cx);
}
})
.detach();
notification.into()
}
});