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 20:39:31 +00:00
committed by GitHub
parent 3339c84cdd
commit 011aa715cf
+7
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()
}
});