mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Fix manga being reinitialized in browse
Co-authored-by: jobobby04 <jobobby04@users.noreply.github.com>
This commit is contained in:
parent
829aadd0bd
commit
4ea512f6c2
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ open class BrowseSourcePresenter(
|
||||||
* @param manga to initialize.
|
* @param manga to initialize.
|
||||||
*/
|
*/
|
||||||
private suspend fun initializeManga(manga: DomainManga) {
|
private suspend fun initializeManga(manga: DomainManga) {
|
||||||
if (manga.thumbnailUrl != null && manga.initialized) return
|
if (manga.thumbnailUrl != null || manga.initialized) return
|
||||||
withContext(NonCancellable) {
|
withContext(NonCancellable) {
|
||||||
val db = manga.toDbManga()
|
val db = manga.toDbManga()
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue