From 16b889500b5bd60fe3f1fbd15a80db7a95477328 Mon Sep 17 00:00:00 2001 From: az4521 <18432684+az4521@users.noreply.github.com> Date: Sun, 2 Feb 2025 02:20:07 +0000 Subject: [PATCH] fixed the dumbest crash in the world (cherry picked from commit 6ebfbf4246191bd85775f9c14a55f741ca3db9f4) --- .../advanced/process/MigrationListScreenModel.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/advanced/process/MigrationListScreenModel.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/advanced/process/MigrationListScreenModel.kt index 7959bdfcb..4d0b08af8 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/advanced/process/MigrationListScreenModel.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/advanced/process/MigrationListScreenModel.kt @@ -196,12 +196,12 @@ class MigrationListScreenModel( if (localManga != null) { val source = sourceManager.get(localManga.source) as? CatalogueSource if (source != null) { - val chapters = if (source is EHentai) { - source.getChapterList(localManga.toSManga(), throttleManager::throttle) - } else { - source.getChapterList(localManga.toSManga()) - } try { + val chapters = if (source is EHentai) { + source.getChapterList(localManga.toSManga(), throttleManager::throttle) + } else { + source.getChapterList(localManga.toSManga()) + } syncChaptersWithSource.await(chapters, localManga, source) } catch (_: Exception) { }