fix: content update modal hiding available updates until reopen (#6277)

This commit is contained in:
Calum H.
2026-06-02 04:23:19 +00:00
committed by GitHub
parent f27691340a
commit 6b0a0c1897
2 changed files with 66 additions and 30 deletions
@@ -426,6 +426,7 @@ const pendingIncompatibleUpdate = ref<{
} | null>(null)
// Store the initial version ID to select when versions become available
const pendingInitialVersionId = ref<string | undefined>(undefined)
const pinnedInitialVersionId = ref<string | undefined>(undefined)
watch(
() => props.versions,
@@ -511,6 +512,7 @@ const filteredVersions = computed(() => {
(version) =>
version.id === props.currentVersionId ||
version.id === selectedVersion.value?.id ||
version.id === pinnedInitialVersionId.value ||
isVersionCompatible(version),
)
}
@@ -683,6 +685,7 @@ function show(initialVersionId?: string, options?: { switchMode?: boolean }) {
searchQuery.value = ''
hideIncompatibleState.value = !isModpack.value
pendingIncompatibleUpdate.value = null
pinnedInitialVersionId.value = initialVersionId
switchMode.value = options?.switchMode ?? false
debug('show() called', {