perf(tauri): move blocking command work off async runtime

This commit is contained in:
t8y2 committed 2026-06-09 17:53:07 +08:00
1 parent a5d9addbf3
commit 348f39ff35
11 files changed
+135 -64

No files matched your search

+2 -2
View File
@@ -10,6 +10,6 @@ pub async fn check_for_updates() -> Result<UpdateInfo, String> {
}
#[tauri::command]
pub fn get_system_proxy_url() -> Option<String> {
dbx_core::update::system_proxy_url()
pub async fn get_system_proxy_url() -> Option<String> {
tauri::async_runtime::spawn_blocking(dbx_core::update::system_proxy_url).await.ok().flatten()
}