This commit is contained in:
Max Brunsfeld 2023-07-26 17:20:43 -07:00 committed by Mikayla Maki
parent 40c293e184
commit bb70901e71
No known key found for this signature in database
9 changed files with 310 additions and 9 deletions

View file

@ -17,10 +17,7 @@ use gpui::{
Canvas, ChildView, Empty, Flex, Image, Label, List, ListOffset, ListState,
MouseEventHandler, Orientation, Padding, ParentElement, Stack, Svg,
},
geometry::{
rect::RectF,
vector::vec2f,
},
geometry::{rect::RectF, vector::vec2f},
platform::{CursorStyle, MouseButton, PromptLevel},
serde_json, AnyElement, AppContext, AsyncAppContext, Element, Entity, ModelHandle,
Subscription, Task, View, ViewContext, ViewHandle, WeakViewHandle,
@ -1452,11 +1449,8 @@ impl View for CollabPanel {
.with_child(ChildView::new(&self.context_menu, cx))
.into_any()
})
.on_click(MouseButton::Left, |_, v, cx| {
cx.focus_self()
})
.on_click(MouseButton::Left, |_, _, cx| cx.focus_self())
.into_any_named("channels panel")
}
}