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();
|
let mut container = Flex::row();
|
||||||
if workspace.read(cx).client().status().borrow().is_connected() {
|
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));
|
container.add_child(self.render_toggle_contacts_button(&theme, cx));
|
||||||
} else {
|
} else {
|
||||||
container.add_child(self.render_share_button(&theme, cx));
|
container.add_child(self.render_share_button(&theme, cx));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue