Minor cleanup

This commit is contained in:
Jobobby04
2025-11-20 12:49:42 -05:00
parent e7c1d4deef
commit e9ed861f00
3 changed files with 7 additions and 7 deletions
@@ -10,11 +10,11 @@ fun ReaderTopBar(
mangaTitle: String?,
chapterTitle: String?,
navigateUp: () -> Unit,
//bookmarked: Boolean,
//onToggleBookmarked: () -> Unit,
//onOpenInWebView: (() -> Unit)?,
//onOpenInBrowser: (() -> Unit)?,
//onShare: (() -> Unit)?,
// bookmarked: Boolean,
// onToggleBookmarked: () -> Unit,
// onOpenInWebView: (() -> Unit)?,
// onOpenInBrowser: (() -> Unit)?,
// onShare: (() -> Unit)?,
modifier: Modifier = Modifier,
) {
AppBar(
@@ -23,7 +23,7 @@ data class LibraryItem(
* @return true if the manga matches the query, false otherwise.
*/
fun matches(constraint: String): Boolean {
val sourceName by lazy { sourceManager.getOrStub(libraryManga.manga.source).getNameForMangaInfo(null) }
val sourceName by lazy { sourceManager.getOrStub(libraryManga.manga.source).getNameForMangaInfo() }
if (constraint.startsWith("id:", true)) {
return id == constraint.substringAfter("id:").toLongOrNull()
}
@@ -1041,7 +1041,7 @@ class MangaScreenModel(
downloadProgress = activeDownload?.progress ?: 0,
selected = chapter.id in selectedChapterIds,
// SY -->
sourceName = source?.getNameForMangaInfo(null, enabledLanguages = enabledLanguages),
sourceName = source?.getNameForMangaInfo(enabledLanguages = enabledLanguages),
showScanlator = !isExhManga,
// SY <--
)