Fix mouse clicks on remote-open-folder UI (#19851)
Also change Zed's standard style to use `.track_focus(&self.focus_handle(cx))`, instead of `.track_focus(&self.focus_handle)`, to catch these kinds of errors more easily in the future. Release Notes: - N/A --------- Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
826d83edfe
commit
80f89059aa
20 changed files with 28 additions and 28 deletions
|
@ -3136,7 +3136,7 @@ impl Render for ProjectPanel {
|
|||
}
|
||||
}),
|
||||
)
|
||||
.track_focus(&self.focus_handle)
|
||||
.track_focus(&self.focus_handle(cx))
|
||||
.child(
|
||||
uniform_list(cx.view().clone(), "entries", item_count, {
|
||||
|this, range, cx| {
|
||||
|
@ -3268,7 +3268,7 @@ impl Render for ProjectPanel {
|
|||
.id("empty-project_panel")
|
||||
.size_full()
|
||||
.p_4()
|
||||
.track_focus(&self.focus_handle)
|
||||
.track_focus(&self.focus_handle(cx))
|
||||
.child(
|
||||
Button::new("open_project", "Open a project")
|
||||
.full_width()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue