Remove more window id usage

This commit is contained in:
Nathan Sobo 2023-08-08 11:20:09 -06:00
parent da7dc9c880
commit 0a4633f88f
10 changed files with 25 additions and 36 deletions

View file

@ -255,10 +255,10 @@ impl TerminalPanel {
.clone();
let working_directory =
crate::get_working_directory(workspace, cx, working_directory_strategy);
let window_id = cx.window_id();
let window = cx.window();
if let Some(terminal) = workspace.project().update(cx, |project, cx| {
project
.create_terminal(working_directory, window_id, cx)
.create_terminal(working_directory, window, cx)
.log_err()
}) {
let terminal = Box::new(cx.add_view(|cx| {