Fix migration progress not updating and category flag mischeck (#2484)

- Fixed an issue where migration progress wasn't updated after a manual source search
- Fixed incorrect logic where the category migration flag was ignored due to checking the chapter flag instead
This commit is contained in:
Secozzi
2025-09-17 11:12:21 +00:00
committed by GitHub
parent 83f4b48629
commit 16b5317b90
3 changed files with 4 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ class MigrateMangaUseCase(
}
// Update categories
if (MigrationFlag.CHAPTER in flags) {
if (MigrationFlag.CATEGORY in flags) {
val categoryIds = getCategories.await(current.id).map { it.id }
setMangaCategories.await(target.id, categoryIds)
}

View File

@@ -251,6 +251,7 @@ class MigrationListScreenModel(
} catch (_: Exception) {
}
migratingManga.searchResult.value = result.toSuccessSearchResult()
updateMigrationProgress()
}
}