Move CallFactory into AppState

Fix crash caused by double borrow of window handle
This commit is contained in:
Piotr Osiewicz 2023-11-21 22:04:02 +01:00
parent abe5a9c85f
commit 7e7a778d11
2 changed files with 8 additions and 12 deletions

View file

@ -180,6 +180,7 @@ fn main() {
user_store,
fs,
build_window_options,
call_factory: call::Call::new,
// background_actions: todo!("ask Mikayla"),
workspace_store,
node_runtime,
@ -189,7 +190,7 @@ fn main() {
// audio::init(Assets, cx);
auto_update::init(http.clone(), client::ZED_SERVER_URL.clone(), cx);
workspace::init(app_state.clone(), cx, call::Call::new);
workspace::init(app_state.clone(), cx);
// recent_projects::init(cx);
go_to_line::init(cx);