Skip to content

Commit

Permalink
workspace: Make "New Window" bring app to foreground (#24015)
Browse files Browse the repository at this point in the history
Closes #ISSUE

Release Notes:

- "New Window" action will now bring App to foreground.
  • Loading branch information
osiewicz authored Jan 31, 2025
1 parent 0ad2aeb commit be4c3cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/workspace/src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
Expand Down

0 comments on commit be4c3cf

Please sign in to comment.