mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 13:24:19 +00:00
Use AppContext instead of MutableAppContext for ActiveCall::global
This commit is contained in:
parent
fceba6814f
commit
087760dba0
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ pub mod room;
|
||||||
|
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
use client::{incoming_call::IncomingCall, Client, UserStore};
|
use client::{incoming_call::IncomingCall, Client, UserStore};
|
||||||
use gpui::{Entity, ModelContext, ModelHandle, MutableAppContext, Subscription, Task};
|
use gpui::{AppContext, Entity, ModelContext, ModelHandle, MutableAppContext, Subscription, Task};
|
||||||
pub use participant::ParticipantLocation;
|
pub use participant::ParticipantLocation;
|
||||||
use project::Project;
|
use project::Project;
|
||||||
pub use room::Room;
|
pub use room::Room;
|
||||||
|
@ -33,7 +33,7 @@ impl ActiveCall {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn global(cx: &mut MutableAppContext) -> ModelHandle<Self> {
|
pub fn global(cx: &AppContext) -> ModelHandle<Self> {
|
||||||
cx.global::<ModelHandle<Self>>().clone()
|
cx.global::<ModelHandle<Self>>().clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue