Improve reader performance

This commit is contained in:
2025-02-14 11:35:03 +08:00
parent 350bcf4ffc
commit 22c01b4fd0
6 changed files with 68 additions and 51 deletions

View File

@@ -238,9 +238,8 @@ class _ReaderState extends State<Reader> with _ReaderLocation, _ReaderWindow {
history!.maxPage = maxPage;
}
history!.readEpisode.add(chapter);
print(history!.readEpisode);
history!.time = DateTime.now();
HistoryManager().addHistory(history!);
HistoryManager().addHistoryAsync(history!);
}
}