mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
docs: use get_webview_window in example (#14082)
This commit is contained in:
@@ -1632,7 +1632,7 @@ impl<R: Runtime> Builder<R> {
|
||||
use tauri::Manager;
|
||||
tauri::Builder::default()
|
||||
.setup(|app| {
|
||||
let main_window = app.get_window("main").unwrap();
|
||||
let main_window = app.get_webview_window("main").unwrap();
|
||||
main_window.set_title("Tauri!")?;
|
||||
Ok(())
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user