Fix play button showing when there are no unread chapters
This commit is contained in:
parent
b368a53670
commit
758cf63024
@ -85,7 +85,7 @@ fun LibraryComfortableGridItem(
|
|||||||
isLocal = item.isLocal,
|
isLocal = item.isLocal,
|
||||||
language = item.sourceLanguage,
|
language = item.sourceLanguage,
|
||||||
// SY -->
|
// SY -->
|
||||||
showPlayButton = item.startReadingButton,
|
showPlayButton = item.startReadingButton && item.manga.unreadCount > 0,
|
||||||
onOpenReader = {
|
onOpenReader = {
|
||||||
onOpenReader(manga)
|
onOpenReader(manga)
|
||||||
},
|
},
|
||||||
|
@ -93,7 +93,7 @@ fun LibraryCompactGridItem(
|
|||||||
isLocal = item.isLocal,
|
isLocal = item.isLocal,
|
||||||
language = item.sourceLanguage,
|
language = item.sourceLanguage,
|
||||||
// SY -->
|
// SY -->
|
||||||
showPlayButton = item.startReadingButton,
|
showPlayButton = item.startReadingButton && item.manga.unreadCount > 0,
|
||||||
playButtonPosition = PlayButtonPosition.Top,
|
playButtonPosition = PlayButtonPosition.Top,
|
||||||
onOpenReader = {
|
onOpenReader = {
|
||||||
onOpenReader(manga)
|
onOpenReader(manga)
|
||||||
|
@ -78,7 +78,7 @@ fun LibraryCoverOnlyGridItem(
|
|||||||
isLocal = item.isLocal,
|
isLocal = item.isLocal,
|
||||||
language = item.sourceLanguage,
|
language = item.sourceLanguage,
|
||||||
// SY -->
|
// SY -->
|
||||||
showPlayButton = item.startReadingButton,
|
showPlayButton = item.startReadingButton && item.manga.unreadCount > 0,
|
||||||
onOpenReader = {
|
onOpenReader = {
|
||||||
onOpenReader(manga)
|
onOpenReader(manga)
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user