Fix getRelatedMangaList error message when source is not installed

This commit is contained in:
Cuong M. Tran 2024-05-01 23:39:14 +07:00
parent da7f142352
commit c0a3c7465c
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -21,6 +21,11 @@ class StubSource(
override suspend fun getPageList(chapter: SChapter): List<Page> =
throw SourceNotInstalledException()
// KMK -->
override suspend fun getRelatedMangaList(manga: SManga): List<SManga> =
throw SourceNotInstalledException()
// KMK <--
override fun toString(): String =
if (!isInvalid) "$name (${lang.uppercase()})" else id.toString()