You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by shalapatil December 17, 2024
I am working on tauri app with next js.
tauri::Builder::default()
.setup(|app| {
let app_handle = app.handle();
// Create the "main" window with its menu
let main_window = WindowBuilder::new(
&app_handle,
"main".to_string(),
tauri::WindowUrl::App("/".into()),
)
.menu(create_main_menu()) // Attach the main menu
.visible(false) // Hidden by default
.build()?;
println!("Main window created: {:?}", main_window);
// Create the "onboarding" window with its menu
let onboarding_window = WindowBuilder::new(
&app_handle,
"onboarding".to_string(),
tauri::WindowUrl::App("/onboarding".into()),
)
.menu(create_onboarding_menu()) // Attach the onboarding menu
.build()?;
println!("Onboarding window created: {:?}", onboarding_window);
Ok(())
})
.run(tauri::generate_context!())
.expect("error while running Tauri application");
Onboarding window is created at last. onboarding menu is only getting shown for main window as well.
What could be the issue?
thank you!
The text was updated successfully, but these errors were encountered:
Discussed in #11990
Originally posted by shalapatil December 17, 2024
I am working on tauri app with next js.
Onboarding window is created at last. onboarding menu is only getting shown for main window as well.
What could be the issue?
thank you!
The text was updated successfully, but these errors were encountered: