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

@@ -13,6 +13,8 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
## [Unreleased]
### Fixes
- Fix height of description not being calculated correctly if images are present ([@Secozzi](https://github.com/Secozzi)) ([#2382](https://github.com/mihonapp/mihon/pull/2382))
- Fix migration progress not updating after manual search ([@Secozzi](https://github.com/Secozzi)) ([#2484](https://github.com/mihonapp/mihon/pull/2484))
- Fix category migration flag being ignored due to incorrect check against chapter flag ([@Secozzi](https://github.com/Secozzi)) ([#2484](https://github.com/mihonapp/mihon/pull/2484))
## [v0.19.1] - 2025-08-07
### Changed

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()
}
}