mirror of
https://github.com/spotiflacapp/SpotiFLAC-Mobile.git
synced 2026-06-01 03:15:17 +07:00
fix: show filter button in all/singles modes when tracks are empty but filters are active
This commit is contained in:
parent
4af089f56c
commit
be90e85d94
1 changed files with 34 additions and 0 deletions
|
|
@ -4333,6 +4333,40 @@ class _QueueTabState extends ConsumerState<QueueTab> {
|
|||
),
|
||||
),
|
||||
|
||||
if (filterMode == 'all' &&
|
||||
totalTrackCount == 0 &&
|
||||
!showFilteringIndicator &&
|
||||
(_activeFilterCount > 0 || unifiedItems.isNotEmpty))
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 8, 16, 8),
|
||||
child: Row(
|
||||
children: [
|
||||
const Spacer(),
|
||||
if (!_isSelectionMode)
|
||||
_buildFilterButton(context, unifiedItems),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
if (filterMode == 'singles' &&
|
||||
totalTrackCount == 0 &&
|
||||
!showFilteringIndicator &&
|
||||
(_activeFilterCount > 0 || unifiedItems.isNotEmpty))
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 8, 16, 8),
|
||||
child: Row(
|
||||
children: [
|
||||
const Spacer(),
|
||||
if (!_isSelectionMode)
|
||||
_buildFilterButton(context, unifiedItems),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
if (historyItems.isNotEmpty && hasQueueItems)
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
|
|
|
|||
Loading…
Reference in a new issue