mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-10 05:37:29 +03:00
Use AppContext instead of MutableAppContext for ActiveCall::global
This commit is contained in:
parent
fceba6814f
commit
087760dba0
@ -3,7 +3,7 @@ pub mod room;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
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;
|
||||
use project::Project;
|
||||
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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user