mirror of
https://github.com/spotiflacapp/SpotiFLAC-Mobile.git
synced 2026-06-01 03:15:17 +07:00
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.
This commit is contained in:
parent
dbe8f5d814
commit
9b27e86e0f
1 changed files with 2 additions and 4 deletions
|
|
@ -2374,7 +2374,7 @@ class _QueueTabState extends ConsumerState<QueueTab> {
|
|||
|
||||
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<QueueTab> {
|
|||
|
||||
if ((filteredGroupedAlbums.isNotEmpty ||
|
||||
filteredGroupedLocalAlbums.isNotEmpty) &&
|
||||
!hasQueueItems &&
|
||||
filterMode == 'albums')
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
|
|
@ -2461,7 +2460,6 @@ class _QueueTabState extends ConsumerState<QueueTab> {
|
|||
// 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<QueueTab> {
|
|||
),
|
||||
|
||||
// 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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue