mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-16 16:19:19 +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) },
|
onLongClick = { onLongClick(libraryItem.libraryManga) },
|
||||||
onClick = { onClick(libraryItem.libraryManga) },
|
onClick = { onClick(libraryItem.libraryManga) },
|
||||||
onClickContinueReading = if (onClickContinueReading != null) {
|
onClickContinueReading = if (onClickContinueReading != null && libraryItem.unreadCount > 0) {
|
||||||
{ onClickContinueReading(libraryItem.libraryManga) }
|
{ onClickContinueReading(libraryItem.libraryManga) }
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
|
@ -58,7 +58,7 @@ fun LibraryCompactGrid(
|
|||||||
},
|
},
|
||||||
onLongClick = { onLongClick(libraryItem.libraryManga) },
|
onLongClick = { onLongClick(libraryItem.libraryManga) },
|
||||||
onClick = { onClick(libraryItem.libraryManga) },
|
onClick = { onClick(libraryItem.libraryManga) },
|
||||||
onClickContinueReading = if (onClickContinueReading != null) {
|
onClickContinueReading = if (onClickContinueReading != null && libraryItem.unreadCount > 0) {
|
||||||
{ onClickContinueReading(libraryItem.libraryManga) }
|
{ onClickContinueReading(libraryItem.libraryManga) }
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
|
@ -65,7 +65,7 @@ fun LibraryList(
|
|||||||
},
|
},
|
||||||
onLongClick = { onLongClick(libraryItem.libraryManga) },
|
onLongClick = { onLongClick(libraryItem.libraryManga) },
|
||||||
onClick = { onClick(libraryItem.libraryManga) },
|
onClick = { onClick(libraryItem.libraryManga) },
|
||||||
onClickContinueReading = if (onClickContinueReading != null) {
|
onClickContinueReading = if (onClickContinueReading != null && libraryItem.unreadCount > 0) {
|
||||||
{ onClickContinueReading(libraryItem.libraryManga) }
|
{ onClickContinueReading(libraryItem.libraryManga) }
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
|
Loading…
Reference in New Issue
Block a user