feat: autoupdate ui
This commit is contained in:
@ -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)
|
||||
}
|
Reference in New Issue
Block a user