Not working yet file-finder2

This commit is contained in:
Conrad Irwin 2023-11-14 09:28:18 -07:00
parent 6b366c102e
commit 7d94d8940c
7 changed files with 2247 additions and 2 deletions

View file

@ -71,6 +71,14 @@ impl ModalLayer {
cx.notify();
}
pub fn current_modal<V>(&self) -> Option<View<V>>
where
V: 'static,
{
let active_modal = self.active_modal.as_ref()?;
active_modal.modal.clone().downcast::<V>().ok()
}
}
impl Render for ModalLayer {