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:
parent
3339c84cdd
commit
011aa715cf
1 changed files with 7 additions and 0 deletions
|
@ -811,6 +811,13 @@ pub fn show_app_notification<V: Notification + 'static>(
|
|||
}
|
||||
})
|
||||
.detach();
|
||||
cx.subscribe(¬ification, {
|
||||
let id = id.clone();
|
||||
move |workspace: &mut Workspace, _, _: &SuppressEvent, cx| {
|
||||
workspace.suppress_notification(&id, cx);
|
||||
}
|
||||
})
|
||||
.detach();
|
||||
notification.into()
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue