Present a blank notification upon receipt of a contact request
This commit is contained in:
parent
bd2ae304fa
commit
3bca1c29e2
5 changed files with 90 additions and 21 deletions
|
@ -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(),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue