Introduce following for assistant panel (#14479)
Release Notes: - Added support for following into the assistant panel. --------- Co-authored-by: Max <max@zed.dev> Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
parent
977a1b7a82
commit
decdd3b6ac
13 changed files with 819 additions and 541 deletions
|
@ -168,7 +168,11 @@ impl TitleBar {
|
|||
cx.listener(move |this, _, cx| {
|
||||
this.workspace
|
||||
.update(cx, |workspace, cx| {
|
||||
workspace.follow(peer_id, cx);
|
||||
if is_following {
|
||||
workspace.unfollow(peer_id, cx);
|
||||
} else {
|
||||
workspace.follow(peer_id, cx);
|
||||
}
|
||||
})
|
||||
.ok();
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue