[fix] update data lost between page and stutter caused by periodly checking game stats in sync mode

This commit is contained in:
2025-11-09 00:55:19 +08:00
parent 812bc64b6f
commit 0f938f6f3e
10 changed files with 190 additions and 94 deletions

View File

@@ -64,8 +64,8 @@ pub fn kill_game() -> Result<String, String> {
}
#[tauri::command]
pub fn check_process_running(process_name: &str) -> Result<bool, String> {
Ok(common::check_process_running(process_name))
pub async fn check_process_running(process_name: &str) -> Result<bool, String> {
Ok(common::check_process_running_async(process_name).await)
}
#[tauri::command]