mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 13:38:13 -08:00
fix: Improve watched logic for posters
This commit is contained in:
parent
a3ccb6009c
commit
0739247836
2 changed files with 3 additions and 2 deletions
|
|
@ -111,6 +111,8 @@ class ItemBaseModel with ItemBaseModelMappable {
|
|||
|
||||
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? get subText => null;
|
||||
|
|
|
|||
|
|
@ -196,8 +196,7 @@ class PosterImage extends ConsumerWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
if (poster is! PhotoAlbumModel && (poster.unPlayedItemCount != null && poster is SeriesModel) ||
|
||||
(poster.playAble && !poster.unWatched))
|
||||
if ((poster.unPlayedItemCount != null && poster is SeriesModel) || poster.watched)
|
||||
IgnorePointer(
|
||||
child: Align(
|
||||
alignment: Alignment.topRight,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue