mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 17:14:50 +00:00
fix: always check for updates/clear cache 10 min cooldown (#7077)
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user