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

@ -931,11 +931,11 @@ pub fn dock_default_item_factory(
.clone();
let working_directory = get_working_directory(workspace, cx, strategy);
let window_id = cx.window_id();
let window = cx.window();
let terminal = workspace
.project()
.update(cx, |project, cx| {
project.create_terminal(working_directory, window_id, cx)
project.create_terminal(working_directory, window, cx)
})
.notify_err(workspace, cx)?;