fix: Improve watched logic for posters

This commit is contained in:
PartyDonut 2025-10-26 18:14:24 +01:00
parent a3ccb6009c
commit 0739247836
2 changed files with 3 additions and 2 deletions

View file

@ -111,6 +111,8 @@ class ItemBaseModel with ItemBaseModelMappable {
bool get unWatched => !userData.played && userData.progress <= 0 && userData.unPlayedItemCount == 0; bool get unWatched => !userData.played && userData.progress <= 0 && userData.unPlayedItemCount == 0;
bool get watched => userData.played;
String? detailedName(BuildContext context) => "$name${overview.yearAired != null ? " (${overview.yearAired})" : ""}"; String? detailedName(BuildContext context) => "$name${overview.yearAired != null ? " (${overview.yearAired})" : ""}";
String? get subText => null; String? get subText => null;

View file

@ -196,8 +196,7 @@ class PosterImage extends ConsumerWidget {
), ),
), ),
), ),
if (poster is! PhotoAlbumModel && (poster.unPlayedItemCount != null && poster is SeriesModel) || if ((poster.unPlayedItemCount != null && poster is SeriesModel) || poster.watched)
(poster.playAble && !poster.unWatched))
IgnorePointer( IgnorePointer(
child: Align( child: Align(
alignment: Alignment.topRight, alignment: Alignment.topRight,