Implement activity indicator in zed2
This commit is contained in:
@@ -520,6 +520,10 @@ impl AppContext {
|
||||
self.platform.should_auto_hide_scrollbars()
|
||||
}
|
||||
|
||||
pub fn restart(&self) {
|
||||
self.platform.restart()
|
||||
}
|
||||
|
||||
pub(crate) fn push_effect(&mut self, effect: Effect) {
|
||||
match &effect {
|
||||
Effect::Notify { emitter } => {
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user