We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Window
create_window
1 parent d5e6046 commit e15a8afCopy full SHA for e15a8af
2 files changed
.changes/create-window-return-window.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": minor
3
4
+
5
+**Breaking change:** Return `Window` on `App` and `AppHandle`'s `create_window` function.
core/tauri/src/app.rs
@@ -372,7 +372,7 @@ macro_rules! shared_app_impl {
372
label: impl Into<String>,
373
url: WindowUrl,
374
setup: F,
375
- ) -> crate::Result<()>
+ ) -> crate::Result<Window<R>>
376
where
377
F: FnOnce(
378
<R::Dispatcher as Dispatch>::WindowBuilder,
@@ -390,8 +390,7 @@ macro_rules! shared_app_impl {
390
window_builder,
391
webview_attributes,
392
label,
393
- ))?;
394
- Ok(())
+ ))
395
}
396
397
#[cfg(feature = "system-tray")]
0 commit comments