Fix: Forgot Auto-Bookmark Toggle & NSFW On GenreDrill

This commit is contained in:
Youwes09
2026-03-31 22:55:26 -05:00
parent 4decce9a7f
commit 82f8a9a36b
3 changed files with 67 additions and 23 deletions
+2 -1
View File
@@ -430,6 +430,7 @@
$effect(() => {
const ch = displayChapter ?? store.activeChapter;
const autoBookmark = store.settings.autoBookmark ?? true;
if (ch && lastPage && store.activeManga) {
const chapterId = ch.id;
const chapterName = ch.name;
@@ -443,7 +444,7 @@
if (!hasNavigated) return;
if (style === "longstrip" && visibleChapterId && chapterId !== visibleChapterId) return;
addHistory({ mangaId, mangaTitle, thumbnailUrl: thumb, chapterId, chapterName, readAt: Date.now() });
if (store.settings.autoBookmark ?? true) {
if (autoBookmark) {
addBookmark({ mangaId, mangaTitle, thumbnailUrl: thumb, chapterId, chapterName, pageNumber: pageNum });
}
if (style !== "longstrip" && store.settings.autoMarkRead && atLast) markChapterRead(chapterId);