From cee25fdbbcae6385abdea2d49b0e00680b5f322b Mon Sep 17 00:00:00 2001 From: "Calum H." Date: Mon, 29 Jun 2026 12:58:43 +0100 Subject: [PATCH] fix: unlinking local mrpack does not show content afterwards (#6541) --- .../src/state/instances/commands/list_content.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/app-lib/src/state/instances/commands/list_content.rs b/packages/app-lib/src/state/instances/commands/list_content.rs index 529efff676..cfddea6493 100644 --- a/packages/app-lib/src/state/instances/commands/list_content.rs +++ b/packages/app-lib/src/state/instances/commands/list_content.rs @@ -207,7 +207,7 @@ pub(crate) async fn list_content( &state.pool, ) .await?; - let imported_modpack_scope = is_imported_modpack_scope(&resolved, &link); + let imported_modpack_scope = is_imported_modpack_scope(&link); let linked_modpack_source_kind = linked_modpack_source_kind(&link); let mut failed_modpack_identifier_lookup = false; let modpack_ids = if imported_modpack_scope { @@ -283,7 +283,7 @@ pub(crate) async fn list_linked_modpack_content( &state.pool, ) .await?; - if is_imported_modpack_scope(&resolved, &link) { + if is_imported_modpack_scope(&link) { let files = content_projects_for_scope( &resolved, cache_behaviour, @@ -1072,12 +1072,8 @@ fn file_metadata_from_entry_or_cache( }) } -fn is_imported_modpack_scope( - resolved: &ResolvedContentScope, - link: &InstanceLink, -) -> bool { - resolved.content_set.source_kind == ContentSourceKind::ImportedModpack - || matches!(link, InstanceLink::ImportedModpack { .. }) +fn is_imported_modpack_scope(link: &InstanceLink) -> bool { + matches!(link, InstanceLink::ImportedModpack { .. }) } async fn linked_modpack_ids_for_instance(