Implement activity indicator in zed2
This commit is contained in:
parent
c95a7c7387
commit
e49325080c
10 changed files with 436 additions and 61 deletions
|
@ -2582,7 +2582,7 @@ impl<V: 'static + Render> WindowHandle<V> {
|
|||
cx.read_window(self, |root_view, _cx| root_view.clone())
|
||||
}
|
||||
|
||||
pub fn is_active(&self, cx: &WindowContext) -> Option<bool> {
|
||||
pub fn is_active(&self, cx: &AppContext) -> Option<bool> {
|
||||
cx.windows
|
||||
.get(self.id)
|
||||
.and_then(|window| window.as_ref().map(|window| window.active))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue