Set up editor actions after workspace not on stack (#20445)
Release Notes: - N/A Co-authored-by: Conrad Irwin <conrad@zed.dev>
This commit is contained in:
parent
72125949d9
commit
1f974d074e
2 changed files with 37 additions and 29 deletions
|
@ -4547,6 +4547,11 @@ impl Workspace {
|
|||
.children(leader_border),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn for_window(cx: &mut WindowContext) -> Option<View<Workspace>> {
|
||||
let window = cx.window_handle().downcast::<Workspace>()?;
|
||||
cx.read_window(&window, |workspace, _| workspace).ok()
|
||||
}
|
||||
}
|
||||
|
||||
fn leader_border_for_pane(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue