Don't update trackers after reading a chapter if Incognito Mode is enabled

Closes #7228
This commit is contained in:
arkon 2023-06-13 18:51:07 -04:00
parent fc4fd487f9
commit 9766399539

View File

@ -831,9 +831,10 @@ class ReaderViewModel(
* will run in a background thread and errors are ignored.
*/
private fun updateTrackChapterRead(readerChapter: ReaderChapter) {
if (basePreferences.incognitoMode().get()) return
if (!trackPreferences.autoUpdateTrack().get()) return
val manga = manga ?: return
val manga = manga ?: return
val chapterRead = readerChapter.chapter.chapter_number.toDouble()
val trackManager = Injekt.get<TrackManager>()