mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-06-03 21:28:09 +02:00
fix: Clear All now hides ALL downloads, not just visible 10
Previously only hid uniqueItems (max 10 visible), now hides all downloadItems
This commit is contained in:
@@ -739,11 +739,9 @@ class _HomeTabState extends ConsumerState<HomeTab> with AutomaticKeepAliveClient
|
||||
if (uniqueItems.isNotEmpty)
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
// Hide all visible download items
|
||||
for (final item in uniqueItems) {
|
||||
if (item.providerId == 'download') {
|
||||
ref.read(recentAccessProvider.notifier).hideDownloadFromRecents(item.id);
|
||||
}
|
||||
// Hide ALL download items (not just visible ones)
|
||||
for (final item in downloadItems) {
|
||||
ref.read(recentAccessProvider.notifier).hideDownloadFromRecents(item.id);
|
||||
}
|
||||
// Clear non-download recent history
|
||||
ref.read(recentAccessProvider.notifier).clearHistory();
|
||||
|
||||
Reference in New Issue
Block a user