only load suggestions after entry finished loading info & chapters

This commit is contained in:
Cuong-Tran 2024-10-23 16:34:52 +07:00
parent 7bc9f9ac06
commit cc0d7cddc7
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -488,10 +488,10 @@ class MangaScreenModel(
async { if (needRefreshInfo) fetchMangaFromSource() }, async { if (needRefreshInfo) fetchMangaFromSource() },
async { if (needRefreshChapter) fetchChaptersFromSource() }, async { if (needRefreshChapter) fetchChaptersFromSource() },
) )
fetchFromSourceTasks.awaitAll()
// KMK --> // KMK -->
launch { fetchRelatedMangasFromSource() } launch { fetchRelatedMangasFromSource() }
// KMK <-- // KMK <--
fetchFromSourceTasks.awaitAll()
} }
// Initial loading finished // Initial loading finished