mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
refactor(core): return Window on create_window API (#3211)
This commit is contained in:
committed by
GitHub
parent
d5e6046756
commit
e15a8af843
5
.changes/create-window-return-window.md
Normal file
5
.changes/create-window-return-window.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": minor
|
||||
---
|
||||
|
||||
**Breaking change:** Return `Window` on `App` and `AppHandle`'s `create_window` function.
|
||||
@@ -372,7 +372,7 @@ macro_rules! shared_app_impl {
|
||||
label: impl Into<String>,
|
||||
url: WindowUrl,
|
||||
setup: F,
|
||||
) -> crate::Result<()>
|
||||
) -> crate::Result<Window<R>>
|
||||
where
|
||||
F: FnOnce(
|
||||
<R::Dispatcher as Dispatch>::WindowBuilder,
|
||||
@@ -390,8 +390,7 @@ macro_rules! shared_app_impl {
|
||||
window_builder,
|
||||
webview_attributes,
|
||||
label,
|
||||
))?;
|
||||
Ok(())
|
||||
))
|
||||
}
|
||||
|
||||
#[cfg(feature = "system-tray")]
|
||||
|
||||
Reference in New Issue
Block a user