From a57dc4f0d44bc6b142e387cec14338bfb0165eb6 Mon Sep 17 00:00:00 2001 From: Max Rumpf Date: Thu, 7 Nov 2024 18:08:53 +0100 Subject: [PATCH] Only show artist top songs with at least one play (#946) --- lib/components/ArtistScreen/artist_screen_content.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/components/ArtistScreen/artist_screen_content.dart b/lib/components/ArtistScreen/artist_screen_content.dart index d1c28e39..3c53840c 100644 --- a/lib/components/ArtistScreen/artist_screen_content.dart +++ b/lib/components/ArtistScreen/artist_screen_content.dart @@ -156,7 +156,10 @@ class _ArtistScreenContentState extends State { if (!isOffline && FinampSettingsHelper.finampSettings.showArtistsTopSongs) SongsSliverList( - childrenForList: songs.take(5).toList(), + childrenForList: songs + .takeWhile((s) => (s.userData?.playCount ?? 0) > 0) + .take(5) + .toList(), childrenForQueue: Future.value(songs), showPlayCount: true, isOnArtistScreen: true, @@ -182,4 +185,4 @@ class _ArtistScreenContentState extends State { ]); }); } -} \ No newline at end of file +}