Not working yet file-finder2
This commit is contained in:
parent
6b366c102e
commit
7d94d8940c
7 changed files with 2247 additions and 2 deletions
|
@ -3541,6 +3541,10 @@ impl Workspace {
|
|||
div
|
||||
}
|
||||
|
||||
pub fn current_modal<V: Modal + 'static>(&mut self, cx: &ViewContext<Self>) -> Option<View<V>> {
|
||||
self.modal_layer.read(cx).current_modal()
|
||||
}
|
||||
|
||||
pub fn toggle_modal<V: Modal, B>(&mut self, cx: &mut ViewContext<Self>, build: B)
|
||||
where
|
||||
B: FnOnce(&mut ViewContext<V>) -> V,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue