Make DismissEvent a unit struct
Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
ac34229118
commit
233aac5573
11 changed files with 26 additions and 38 deletions
|
@ -325,8 +325,7 @@ impl VisualContext for AsyncWindowContext {
|
|||
where
|
||||
V: crate::ManagedView,
|
||||
{
|
||||
self.window.update(self, |_, cx| {
|
||||
view.update(cx, |_, cx| cx.emit(DismissEvent::Dismiss))
|
||||
})
|
||||
self.window
|
||||
.update(self, |_, cx| view.update(cx, |_, cx| cx.emit(DismissEvent)))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue