Skip to content

Update manga to display correct number of unread chapters after marking chapters as read/unread #535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 28, 2025

Conversation

NBA2K1
Copy link
Contributor

@NBA2K1 NBA2K1 commented Jul 27, 2025

And optimize chapter saving by moving from one-by-one writes to bulk operation.

Also for the bookmark button.

Before, you had to change the page to update the unread-chapters-count:

Mark_Read_Before.mp4
Mark_Following_Read_Before.mp4

 

Now the issue is fixed:

Mark_Read_After.mp4
Mark_Following_Read_After.mp4

NBA2K1 added 4 commits July 27, 2025 19:42
Fix unread count not updating when marking selected chapters as read
reduces IO-operations.
- variable `color`, to avoid passing `Theme.of(context).textTheme.bodyLarge!.color!` on every Icon in `bottomNavigationBar`
- No need to create variable `isLongPressed` and `chapterNameList` in `build()` and pass them to `_buildWidget()` if they are only going to be used there. Just create the variables inside `_buildWidget()`
- Why create second `isLongPressed` variable in `_buildWidget()` with the same value? Just use the first one.
@kodjodevf kodjodevf merged commit 36a2232 into kodjodevf:main Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants