From af846e3336b8aafd859f17ace9b8b09930a565dd Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Fri, 22 May 2026 12:05:23 +0200 Subject: [PATCH] Fix updating migration entry status on manual match selection Status was only updated in case the search was still in progress, while it should always be set to "complete" --- src/features/migration/MigrationManager.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/features/migration/MigrationManager.ts b/src/features/migration/MigrationManager.ts index 7dc68f8c..9f4e688b 100644 --- a/src/features/migration/MigrationManager.ts +++ b/src/features/migration/MigrationManager.ts @@ -585,7 +585,6 @@ export class MigrationManager { mangaId: MangaIdInfo['id'], targetMangaId: MangaIdInfo['id'], targetSourceId: SourceIdInfo['id'], - updateProgress: boolean = false, ): void { MigrationManager.updateState((draft) => { const entry = draft.entries[mangaId]; @@ -594,13 +593,14 @@ export class MigrationManager { MigrationEntryStatus.SEARCH_FAILED, MigrationEntryStatus.SEARCH_COMPLETE, ].includes(entry.status); - if (updateProgress && isSearching) { + if (isSearching) { draft.searchProgress.completed += 1; draft.searchProgress.success += 1; - entry.status = MigrationEntryStatus.SEARCH_COMPLETE; } + entry.status = MigrationEntryStatus.SEARCH_COMPLETE; entry.isManualSelection = true; + entry.selectedMatchMangaId = targetMangaId; entry.selectedMatchSourceId = targetSourceId; } @@ -631,9 +631,9 @@ export class MigrationManager { if (isSearching) { draft.searchProgress.completed += 1; draft.searchProgress.success += 1; - entry.status = MigrationEntryStatus.SEARCH_COMPLETE; } + entry.status = MigrationEntryStatus.SEARCH_COMPLETE; entry.isManualSelection = true; entry.selectedMatchMangaId = match.id; entry.selectedMatchSourceId = match.sourceId;