From 4bbf7e4784829c6ac67a9f26e39427a1595e3200 Mon Sep 17 00:00:00 2001
From: schroda <50052685+schroda@users.noreply.github.com>
Date: Fri, 19 Jun 2026 12:50:29 +0200
Subject: [PATCH] Fix library manga menu download item visibility
Manga that did not have any downloads didn't show the menu download item option
Regression ef9e65cf9a7a090611d223dc22c3872231dc5e51
---
src/features/manga/components/MangaActionMenuItems.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/features/manga/components/MangaActionMenuItems.tsx b/src/features/manga/components/MangaActionMenuItems.tsx
index 78d9ba96..22d1aa15 100644
--- a/src/features/manga/components/MangaActionMenuItems.tsx
+++ b/src/features/manga/components/MangaActionMenuItems.tsx
@@ -82,7 +82,7 @@ export const MangaActionMenuItems = ({
const shouldShowMenuItem = createShouldShowMenuItem(isSingleMode);
const isMenuItemDisabled = createIsMenuItemDisabled(isSingleMode);
- const isPartiallyDownloaded = !!manga && Mangas.isPartiallyDownloaded(manga);
+ const isDownloadable = !!manga && !!manga.chapters.totalCount && !Mangas.isFullyDownloaded(manga);
const hasDownloadedChapters = manga && Mangas.isPartiallyDownloaded(manga);
const hasUnreadChapters = manga && Mangas.isPartiallyRead(manga);
const hasReadChapters = !!manga && Mangas.isPartiallyRead(manga);
@@ -121,7 +121,7 @@ export const MangaActionMenuItems = ({
{!!handleSelection && isSingleMode && (
)}
- {shouldShowMenuItem(isPartiallyDownloaded) && (
+ {shouldShowMenuItem(isDownloadable) && (