From 3c9f80c320ddcd2f046546203060c93153105e5c Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Fri, 22 May 2026 11:27:17 +0200 Subject: [PATCH] Fix queuing downloads success toast Always showed a success toast for 9999 chapters Regression 3ae4d8d752019fe4f8f41dec6308545f2a6d9ab1 --- src/features/manga/services/Mangas.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/features/manga/services/Mangas.ts b/src/features/manga/services/Mangas.ts index b281536e..631fb4e4 100644 --- a/src/features/manga/services/Mangas.ts +++ b/src/features/manga/services/Mangas.ts @@ -306,6 +306,7 @@ export class Mangas { } }, true, + true, ); } @@ -323,6 +324,7 @@ export class Mangas { } }, true, + true, ); } @@ -349,6 +351,7 @@ export class Mangas { } }, true, + true, ); } @@ -366,6 +369,7 @@ export class Mangas { } }, true, + true, ); } @@ -424,6 +428,7 @@ export class Mangas { itemCount: number, fnToExecute: () => Promise, disableConfirmation?: boolean, + errorOnlyToast?: boolean, ): Promise { const { always, bulkAction, bulkActionCountForce } = MANGA_ACTION_TO_CONFIRMATION_REQUIRED[action]; const requiresConfirmation = @@ -452,6 +457,11 @@ export class Mangas { } await fnToExecute(); + + if (errorOnlyToast) { + return; + } + makeToast( /* lingui-extract-ignore */ i18n.t({ ...MANGA_ACTION_TO_TRANSLATION[action].success, values: { count: itemCount } }),