Only show library continue reading button if there's unread chapters

Closes #8865
This commit is contained in:
arkon 2023-01-08 10:43:01 -05:00
parent 48cab708ce
commit 5d90ba8aa0
3 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ fun LibraryComfortableGrid(
},
onLongClick = { onLongClick(libraryItem.libraryManga) },
onClick = { onClick(libraryItem.libraryManga) },
onClickContinueReading = if (onClickContinueReading != null) {
onClickContinueReading = if (onClickContinueReading != null && libraryItem.unreadCount > 0) {
{ onClickContinueReading(libraryItem.libraryManga) }
} else {
null

View file

@ -58,7 +58,7 @@ fun LibraryCompactGrid(
},
onLongClick = { onLongClick(libraryItem.libraryManga) },
onClick = { onClick(libraryItem.libraryManga) },
onClickContinueReading = if (onClickContinueReading != null) {
onClickContinueReading = if (onClickContinueReading != null && libraryItem.unreadCount > 0) {
{ onClickContinueReading(libraryItem.libraryManga) }
} else {
null

View file

@ -65,7 +65,7 @@ fun LibraryList(
},
onLongClick = { onLongClick(libraryItem.libraryManga) },
onClick = { onClick(libraryItem.libraryManga) },
onClickContinueReading = if (onClickContinueReading != null) {
onClickContinueReading = if (onClickContinueReading != null && libraryItem.unreadCount > 0) {
{ onClickContinueReading(libraryItem.libraryManga) }
} else {
null