Move share button and support unsharing
This commit is contained in:
parent
ed2f1ddd2d
commit
e96d52f35a
3 changed files with 80 additions and 20 deletions
|
@ -284,6 +284,18 @@ impl ActiveCall {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn unshare_project(
|
||||
&mut self,
|
||||
project: ModelHandle<Project>,
|
||||
cx: &mut ModelContext<Self>,
|
||||
) -> Result<()> {
|
||||
if let Some((room, _)) = self.room.as_ref() {
|
||||
room.update(cx, |room, cx| room.unshare_project(project, cx))
|
||||
} else {
|
||||
Err(anyhow!("no active call"))
|
||||
}
|
||||
}
|
||||
|
||||
pub fn set_location(
|
||||
&mut self,
|
||||
project: Option<&ModelHandle<Project>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue