Collapse "other matches" if only result gets selected

This commit is contained in:
schroda
2026-06-21 13:28:14 +02:00
parent 13605c4819
commit 829bd8a7e5
2 changed files with 5 additions and 0 deletions

View File

@@ -665,6 +665,10 @@ export class MigrationManager {
MigrationManager.updateState((draft) => {
const entry = draft.entries[mangaId];
if (entry) {
if (entry.selectedMatchMangaId === null && (entry.searchMatches.length || entry.manualMatches.length)) {
entry.areMatchesExpanded = false;
}
entry.status = MigrationEntryStatus.SEARCH_COMPLETE;
entry.isManualSelection = true;
entry.selectedMatchMangaId = targetMangaId;