Fix: Windows blank page deadlock

This commit is contained in:
Kr4ight
2026-04-05 03:06:19 +02:00
parent 3beabfca48
commit d2e49c16fe
+4 -2
View File
@@ -50,7 +50,8 @@ pub fn auth_create_link(app: AppHandle) -> Result<String, String> {
let app_handle = app.clone(); let app_handle = app.clone();
tauri::WebviewWindowBuilder::new(&app, "auth", tauri::WebviewUrl::External(url)) std::thread::spawn(move || {
tauri::WebviewWindowBuilder::new(&app, "auth", tauri::WebviewUrl::External(url))
.title("Microsoft Login") .title("Microsoft Login")
.inner_size(500.0, 700.0) .inner_size(500.0, 700.0)
.resizable(false) .resizable(false)
@@ -74,7 +75,8 @@ pub fn auth_create_link(app: AppHandle) -> Result<String, String> {
true true
}) })
.build() .build()
.map_err(|e| e.to_string())?; .map_err(|e| e.to_string()).unwrap();
});
Ok(link) Ok(link)
} }