Remove more window id usage
This commit is contained in:
parent
da7dc9c880
commit
0a4633f88f
10 changed files with 25 additions and 36 deletions
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue