Here is the command opening a new Webview Window, and parenting it to the "main" window
#[tauri::command]
pub async fn show_branch_operation_window(app: tauri::AppHandle) -> Result<(), ApplicationError> {
let main_window = app
.get_webview_window("main")
.ok_or(ApplicationError::Warning(
"Window not found: 'main'".to_string(),
))?;
tauri::WebviewWindowBuilder::new(
&app,
"branch-operations",
tauri::WebviewUrl::App("index.html".into()),
)
.parent(&main_window)?
.center()
.build()?;
Ok(())
}
A video is attached showing how the process hangs