From c2599981d6d8a01d106f5f560762ef8bf629cd30 Mon Sep 17 00:00:00 2001 From: zarzet Date: Sun, 18 Jan 2026 13:12:45 +0700 Subject: [PATCH] fix: Clear All now hides ALL downloads, not just visible 10 Previously only hid uniqueItems (max 10 visible), now hides all downloadItems --- lib/screens/home_tab.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/screens/home_tab.dart b/lib/screens/home_tab.dart index 04a6ff88..e68c61de 100644 --- a/lib/screens/home_tab.dart +++ b/lib/screens/home_tab.dart @@ -739,11 +739,9 @@ class _HomeTabState extends ConsumerState 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();