mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-19 01:29:42 +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:
@@ -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)
|
||||
}
|
||||
|
@@ -251,6 +251,7 @@ class MigrationListScreenModel(
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
migratingManga.searchResult.value = result.toSuccessSearchResult()
|
||||
updateMigrationProgress()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user