Fix library manga menu download item visibility

Manga that did not have any downloads didn't show the menu download item option

Regression ef9e65cf9a
This commit is contained in:
schroda
2026-06-19 12:50:29 +02:00
parent 4813bfd882
commit 4bbf7e4784

View File

@@ -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 && (
<MenuItem onClick={handleSelect} Icon={CheckBoxOutlineBlank} title={t`Select`} />
)}
{shouldShowMenuItem(isPartiallyDownloaded) && (
{shouldShowMenuItem(isDownloadable) && (
<NestedMenuItem
disabled={isMenuItemDisabled(!downloadableMangas.length)}
LeftIcon={Download}