Fix unread count after marking chapters read

Fix unread count not updating when marking selected chapters as read
This commit is contained in:
NBA2K1 2025-07-27 19:42:05 +02:00
parent 10ee707284
commit 1e2153fa4f

View file

@ -914,6 +914,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
chapter.updateTrackChapterRead(ref);
}
}
isar.mangas.putSync(widget.manga!);
});
ref
.read(isLongPressedStateProvider.notifier)
@ -963,6 +964,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
chapters[i].manga.saveSync();
}
}
isar.mangas.putSync(widget.manga!);
ref
.read(isLongPressedStateProvider.notifier)
.update(false);