Feat: Default Library Toggle

This commit is contained in:
Youwes09
2026-04-06 22:53:42 -05:00
parent 0b6e9fbbbb
commit 7917491389
3 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -344,7 +344,7 @@
// 1. Pick the right base list for this tab
let items: Manga[];
if (store.libraryFilter === "library") {
items = allManga;
items = store.settings.savedIsDefaultCategory ? (categoryMangaMap.get(0) ?? []) : allManga;
} else if (store.libraryFilter === "downloaded") {
items = allManga.filter(m => (m.downloadCount ?? 0) > 0);
} else {
@@ -424,7 +424,7 @@
const counts = $derived((() => {
const m: Record<string, number> = {
library: allManga.length,
library: store.settings.savedIsDefaultCategory ? (categoryMangaMap.get(0) ?? []).length : allManga.length,
downloaded: allManga.filter(m => (m.downloadCount ?? 0) > 0).length,
};
for (const cat of visibleCategories) {