From b317f7cd763bb67e7a23f0e41a92695109018b1f Mon Sep 17 00:00:00 2001 From: zarzet Date: Wed, 11 Feb 2026 08:01:11 +0700 Subject: [PATCH] fix: show library filter buttons while downloads are active Previously filter/sort headers in All, Albums, and Singles tabs were hidden when queue items existed, preventing users from filtering their library (e.g. find MP3 tracks to re-download as FLAC) during active downloads. --- lib/screens/queue_tab.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/screens/queue_tab.dart b/lib/screens/queue_tab.dart index 665873b2..2eba8858 100644 --- a/lib/screens/queue_tab.dart +++ b/lib/screens/queue_tab.dart @@ -2374,7 +2374,7 @@ class _QueueTabState extends ConsumerState { return CustomScrollView( slivers: [ - if (totalTrackCount > 0 && !hasQueueItems && filterMode == 'all') + if (totalTrackCount > 0 && filterMode == 'all') SliverToBoxAdapter( child: Padding( padding: const EdgeInsets.fromLTRB(16, 8, 16, 8), @@ -2424,7 +2424,6 @@ class _QueueTabState extends ConsumerState { if ((filteredGroupedAlbums.isNotEmpty || filteredGroupedLocalAlbums.isNotEmpty) && - !hasQueueItems && filterMode == 'albums') SliverToBoxAdapter( child: Padding( @@ -2461,7 +2460,6 @@ class _QueueTabState extends ConsumerState { // Albums empty state with filter button if (filteredGroupedAlbums.isEmpty && filteredGroupedLocalAlbums.isEmpty && - !hasQueueItems && filterMode == 'albums' && (historyItems.isNotEmpty || localLibraryItems.isNotEmpty)) SliverToBoxAdapter( @@ -2612,7 +2610,7 @@ class _QueueTabState extends ConsumerState { ), // Singles filter - show unified items (downloaded + local singles) - if (filterMode == 'singles' && !hasQueueItems) + if (filterMode == 'singles') SliverToBoxAdapter( child: Padding( padding: const EdgeInsets.fromLTRB(16, 8, 16, 8),