Implement channel modal
Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
parent
80b6922de7
commit
1c3698ae20
6 changed files with 213 additions and 243 deletions
|
@ -2662,13 +2662,6 @@ impl<'a, V: 'static> ViewContext<'a, V> {
|
|||
self.defer(|view, cx| view.focus_handle(cx).focus(cx))
|
||||
}
|
||||
|
||||
pub fn dismiss_self(&mut self)
|
||||
where
|
||||
V: ManagedView,
|
||||
{
|
||||
self.defer(|_, cx| cx.emit(DismissEvent))
|
||||
}
|
||||
|
||||
pub fn listener<E>(
|
||||
&self,
|
||||
f: impl Fn(&mut V, &E, &mut ViewContext<V>) + 'static,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue