Add rough versions of all 3 modals
This commit is contained in:
parent
941da24f73
commit
9d8d2bb8f4
6 changed files with 480 additions and 206 deletions
|
@ -765,6 +765,12 @@ impl MutableAppContext {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn has_window(&self, window_id: usize) -> bool {
|
||||
self.window_ids()
|
||||
.find(|window| window == &window_id)
|
||||
.is_some()
|
||||
}
|
||||
|
||||
pub fn window_ids(&self) -> impl Iterator<Item = usize> + '_ {
|
||||
self.cx.windows.keys().copied()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue