Skip to content

Commit

Permalink
progress_tracking: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Batorian committed Mar 1, 2025
1 parent 937be50 commit 407cc16
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/screens/reader/hooks/useChapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ export default function useChapter(webViewRef: RefObject<WebView>) {

// Track progress if the plugin supports it
const plugin = getPlugin(novel.pluginId);
if (plugin?.trackProgress && chapter.unread) {
plugin.trackProgress(novel.path, chapter.path);
if (plugin?.pluginSettings) {
if (plugin?.trackProgress && chapter.unread) {
plugin.trackProgress(novel.path, chapter.path);
}
}

markChapterRead(chapter.id);
Expand Down

0 comments on commit 407cc16

Please sign in to comment.