mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-06 02:58:35 +02:00
perf(library): lazy-load collections and dispose queries
This commit is contained in:
@@ -382,10 +382,14 @@ extension _QueueTabNavigation on _QueueTabState {
|
||||
);
|
||||
}
|
||||
|
||||
final firstCoverUrl = playlist.tracks
|
||||
.where((e) => e.track.coverUrl != null && e.track.coverUrl!.isNotEmpty)
|
||||
.map((e) => e.track.coverUrl!)
|
||||
.firstOrNull;
|
||||
final firstCoverUrl =
|
||||
playlist.tracks
|
||||
.where(
|
||||
(e) => e.track.coverUrl != null && e.track.coverUrl!.isNotEmpty,
|
||||
)
|
||||
.map((e) => e.track.coverUrl!)
|
||||
.firstOrNull ??
|
||||
playlist.previewCover;
|
||||
|
||||
if (firstCoverUrl != null) {
|
||||
// Guard against local file paths that may have been stored as coverUrl
|
||||
|
||||
Reference in New Issue
Block a user