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:
zarzet
2026-01-18 13:12:45 +07:00
parent a1647a41ff
commit c2599981d6
+3 -5
View File
@@ -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();