feat: autoupdate ui

This commit is contained in:
2025-04-12 10:53:06 +00:00
parent 28269c5d75
commit f3016eb029
6 changed files with 92 additions and 24 deletions

View File

@ -469,4 +469,12 @@ pub async fn list_patches(state: State<'_, Mutex<AppData>>, target: String) -> R
let list = appd.patch_set.find_patches(target).map_err(|e| e.to_string())?;
Ok(list)
}
#[tauri::command]
pub async fn has_updated(state: State<'_, Mutex<AppData>>) -> Result<bool, ()> {
log::debug!("invoke: has_updated");
let appd = state.lock().await;
Ok(appd.state.has_updated)
}