mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 11:47:48 +01:00
Only show library continue reading button if there's unread chapters
Closes #8865
This commit is contained in:
parent
48cab708ce
commit
5d90ba8aa0
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue