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.
1 parent f557f6b commit e17b600Copy full SHA for e17b600
docs/guides/features/multiwindow.md
@@ -62,6 +62,8 @@ tauri::Builder::default()
62
).build()?;
63
Ok(())
64
})
65
+ .run(tauri::generate_context!())
66
+ .expect("error while running app");
67
```
68
69
Using the setup hook ensures static windows and Tauri plugins are initialized.
@@ -83,6 +85,9 @@ let local_window = tauri::WindowBuilder::new(
83
85
"local",
84
86
tauri::WindowUrl::App("index.html".into())
87
88
+
89
+// This will start the app and no other code below this will run.
90
+app.run(|_, _| {});
91
92
93
This method is useful when you cannot move ownership of values to the setup closure.
0 commit comments