fix: always check for updates/clear cache 10 min cooldown (#7077)

This commit is contained in:
Calum H.
2026-08-10 14:00:42 +00:00
committed by GitHub
parent 92971a3e0d
commit 9fd45ef2ce
10 changed files with 71 additions and 4 deletions
+6
View File
@@ -30,6 +30,7 @@ pub fn init<R: tauri::Runtime>() -> tauri::plugin::TauriPlugin<R> {
instance_get_install_candidates,
instance_content,
instance_get_content_items,
instance_refresh_content_updates,
instance_get_dependencies_as_content_items,
instance_get_linked_modpack_info,
instance_get_linked_modpack_content,
@@ -524,6 +525,11 @@ pub async fn instance_get_content_items(
)
}
#[tauri::command]
pub async fn instance_refresh_content_updates(instance_id: &str) -> Result<()> {
Ok(theseus::instance::refresh_content_updates(instance_id).await?)
}
#[tauri::command]
pub async fn instance_get_dependencies_as_content_items(
dependencies: Vec<Dependency>,