mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-26 15:16:04 +03: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) },
|
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 a new issue