From 26adfc6c4ff439f4f2953079a1aab7e3386ba7dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=92=E7=A0=82=E7=B3=96?= <90336521+lings03@users.noreply.github.com> Date: Fri, 21 Feb 2025 09:09:01 +0800 Subject: [PATCH] Fix missing chapterGroup when continueRead (#213) --- lib/pages/comic_details_page/actions.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/pages/comic_details_page/actions.dart b/lib/pages/comic_details_page/actions.dart index da10543..90f0a35 100644 --- a/lib/pages/comic_details_page/actions.dart +++ b/lib/pages/comic_details_page/actions.dart @@ -95,7 +95,9 @@ abstract mixin class _ComicPageActions { /// [ep] the episode number, start from 1 /// /// [page] the page number, start from 1 - void read([int? ep, int? page]) { + /// + /// [group] the chapter group number, start from 1 + void read([int? ep, int? page, int? group]) { App.rootContext .to( () => Reader( @@ -105,6 +107,7 @@ abstract mixin class _ComicPageActions { chapters: comic.chapters, initialChapter: ep, initialPage: page, + initialChapterGroup: group, history: history ?? History.fromModel(model: comic, ep: 0, page: 0), author: comic.findAuthor() ?? '', tags: comic.plainTags, @@ -118,7 +121,8 @@ abstract mixin class _ComicPageActions { void continueRead() { var ep = history?.ep ?? 1; var page = history?.page ?? 1; - read(ep, page); + var group = history?.group ?? 1; + read(ep, page, group); } void onReadEnd();