Only show the sources name if there are multiple sources

This commit is contained in:
Jobobby04 2022-11-15 11:22:29 -05:00
parent 0a6672a768
commit eedfa44ec8

View File

@ -942,7 +942,7 @@ class MangaInfoScreenModel(
val activeDownload = downloadManager.queue.find { chapter.id == it.chapter.id } val activeDownload = downloadManager.queue.find { chapter.id == it.chapter.id }
// SY --> // SY -->
val manga = mergedData?.manga?.get(chapter.mangaId) ?: manga val manga = mergedData?.manga?.get(chapter.mangaId) ?: manga
val source = mergedData?.sources?.find { manga.source == it.id } val source = mergedData?.sources?.find { manga.source == it.id }?.takeIf { mergedData.sources.size > 2 }
// SY <-- // SY <--
val downloaded = downloadManager.isChapterDownloaded( val downloaded = downloadManager.isChapterDownloaded(
// SY --> // SY -->