Present a blank notification upon receipt of a contact request

This commit is contained in:
Nathan Sobo 2022-05-10 18:33:39 -06:00
parent bd2ae304fa
commit 3bca1c29e2
5 changed files with 90 additions and 21 deletions

View file

@ -1732,11 +1732,7 @@ impl Workspace {
}
}
fn render_notifications(
&self,
theme: &theme::Workspace,
cx: &mut RenderContext<Self>,
) -> Option<ElementBox> {
fn render_notifications(&self, theme: &theme::Workspace) -> Option<ElementBox> {
if self.notifications.is_empty() {
None
} else {
@ -2094,7 +2090,7 @@ impl View for Workspace {
.top()
.boxed()
}))
.with_children(self.render_notifications(&theme.workspace, cx))
.with_children(self.render_notifications(&theme.workspace))
.flex(1.0, true)
.boxed(),
)