mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03: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
@ -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 New Issue
Block a user