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