docs: use get_webview_window in example (#14082)

This commit is contained in:
Fabian-Lars
2025-08-25 16:19:44 +02:00
committed by GitHub
parent df61fac2b5
commit 755eb33d1c

View File

@@ -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(())
});