소스 검색

fix(core): `window > create` endpoint

Lucas Nogueira 3 년 전
부모
커밋
3f45c23a75
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/tauri/src/endpoints/window.rs

+ 1 - 1
core/tauri/src/endpoints/window.rs

@@ -170,7 +170,7 @@ impl Cmd {
     let label = options.label.clone();
     let url = options.url.clone();
 
-    let mut builder = context.window.builder(label, url);
+    let mut builder = crate::window::Window::builder(&context.window, label, url);
     builder.window_builder = <<R::Dispatcher as Dispatch>::WindowBuilder>::with_config(*options);
     builder.build().map_err(crate::error::into_anyhow)?;