mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-08-05 00:09:44 +00:00
updateTrackChapterRead() only stamped startedReadingDate when chapterNumber == 1, but each call only updates lastChapterRead to the chapter being processed. When multiple chapters are marked read at once, processing order isn't guaranteed to reach chapter 1 last, and the leading guard (chapterNumber <= track.lastChapterRead) skips chapter 1 entirely once a later chapter has already been recorded. The result: startedReadingDate stayed at its unset sentinel (0), which trackers like MAL then serialized as 1970-01-01. Replace the `chapterNumber == 1` check with isFirstRead, captured as `(track.lastChapterRead ?? 0) == 0` before `lastChapterRead` is overwritten. This detects "first ever read for this track" independent of processing order or how chapter numbers are recognized, fixing bulk-select while leaving single-chapter reads unaffected. |
||
|---|---|---|
| .. | ||
| cryptoaes | ||
| extensions | ||
| log | ||
| url_protocol | ||
| cached_network.dart | ||
| chapter_recognition.dart | ||
| constant.dart | ||
| date.dart | ||
| discord_rpc.dart | ||
| fetch_interval.dart | ||
| global_style.dart | ||
| headers.dart | ||
| headers.g.dart | ||
| html_to_xml_doc.dart | ||
| item_type_filters.dart | ||
| item_type_localization.dart | ||
| language.dart | ||
| platform_utils.dart | ||
| reg_exp_matcher.dart | ||
| riverpod.dart | ||
| system_ui.dart | ||
| utils.dart | ||
| window_geometry.dart | ||
| xpath_selector.dart | ||