Explorar o código

fix(core): `window > create` endpoint

Lucas Nogueira %!s(int64=3) %!d(string=hai) anos
pai
achega
3f45c23a75
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)?;