Fixed the issue of not storing maxPage.

fix #112
This commit is contained in:
2024-12-26 14:12:13 +08:00
parent 2238fcc68f
commit 1f5382ff8c

View File

@@ -212,7 +212,11 @@ class _ReaderState extends State<Reader> with _ReaderLocation, _ReaderWindow {
if(history != null) {
history!.page = page;
history!.ep = chapter;
if (maxPage > 1) {
history!.maxPage = maxPage;
}
history!.readEpisode.add(chapter);
history!.time = DateTime.now();
HistoryManager().addHistory(history!);
}
}