mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-09 21:09:35 +02:00
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:
@@ -13,6 +13,8 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Fixes
|
### 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 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
|
## [v0.19.1] - 2025-08-07
|
||||||
### Changed
|
### Changed
|
||||||
|
@@ -89,7 +89,7 @@ class MigrateMangaUseCase(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update categories
|
// Update categories
|
||||||
if (MigrationFlag.CHAPTER in flags) {
|
if (MigrationFlag.CATEGORY in flags) {
|
||||||
val categoryIds = getCategories.await(current.id).map { it.id }
|
val categoryIds = getCategories.await(current.id).map { it.id }
|
||||||
setMangaCategories.await(target.id, categoryIds)
|
setMangaCategories.await(target.id, categoryIds)
|
||||||
}
|
}
|
||||||
|
@@ -251,6 +251,7 @@ class MigrationListScreenModel(
|
|||||||
} catch (_: Exception) {
|
} catch (_: Exception) {
|
||||||
}
|
}
|
||||||
migratingManga.searchResult.value = result.toSuccessSearchResult()
|
migratingManga.searchResult.value = result.toSuccessSearchResult()
|
||||||
|
updateMigrationProgress()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user