mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 08:55:07 +01:00
Only show library continue reading button if there's unread chapters
Closes #8865
This commit is contained in:
parent
48cab708ce
commit
5d90ba8aa0
@ -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 New Issue
Block a user