Fix play button showing when there are no unread chapters

This commit is contained in:
Jobobby04 2022-07-29 19:40:14 -04:00
parent b368a53670
commit 758cf63024
3 changed files with 3 additions and 3 deletions

View File

@ -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)
},

View File

@ -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)

View File

@ -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)
},