workspace: Make "New Window" bring app to foreground (#24015)
Closes #ISSUE Release Notes: - "New Window" action will now bring App to foreground.
This commit is contained in:
parent
0ad2aeb2e9
commit
be4c3cfbd2
1 changed files with 4 additions and 1 deletions
|
@ -1284,7 +1284,10 @@ impl Workspace {
|
|||
.unwrap_or_default();
|
||||
|
||||
window
|
||||
.update(&mut cx, |_, window, _| window.activate_window())
|
||||
.update(&mut cx, |_, window, cx| {
|
||||
window.activate_window();
|
||||
cx.activate(true);
|
||||
})
|
||||
.log_err();
|
||||
Ok((window, opened_items))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue