Remove spurious focus of contact popover when opening it

Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2022-10-12 17:39:44 -07:00
parent d42bf8eebe
commit 513c02e67f

View file

@ -152,7 +152,6 @@ impl CollabTitlebarItem {
let project = workspace.read(cx).project().clone(); let project = workspace.read(cx).project().clone();
let user_store = workspace.read(cx).user_store().clone(); let user_store = workspace.read(cx).user_store().clone();
let view = cx.add_view(|cx| ContactsPopover::new(project, user_store, cx)); let view = cx.add_view(|cx| ContactsPopover::new(project, user_store, cx));
cx.focus(&view);
cx.subscribe(&view, |this, _, event, cx| { cx.subscribe(&view, |this, _, event, cx| {
match event { match event {
contacts_popover::Event::Dismissed => { contacts_popover::Event::Dismissed => {