mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 11:29:25 +00:00
Don't show share button for remote projects
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
parent
ebee2168fc
commit
678b013da6
1 changed files with 4 additions and 1 deletions
|
@ -54,7 +54,10 @@ impl View for CollabTitlebarItem {
|
|||
|
||||
let mut container = Flex::row();
|
||||
if workspace.read(cx).client().status().borrow().is_connected() {
|
||||
if project.is_shared() || ActiveCall::global(cx).read(cx).room().is_none() {
|
||||
if project.is_shared()
|
||||
|| project.is_remote()
|
||||
|| ActiveCall::global(cx).read(cx).room().is_none()
|
||||
{
|
||||
container.add_child(self.render_toggle_contacts_button(&theme, cx));
|
||||
} else {
|
||||
container.add_child(self.render_share_button(&theme, cx));
|
||||
|
|
Loading…
Reference in a new issue