Implement activity indicator in zed2

This commit is contained in:
Max Brunsfeld 2023-11-29 17:18:21 -08:00
parent c95a7c7387
commit e49325080c
10 changed files with 436 additions and 61 deletions

View file

@ -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))