Don't update trackers after reading a chapter if Incognito Mode is enabled
Closes #7228
This commit is contained in:
parent
fc4fd487f9
commit
9766399539
1 changed files with 2 additions and 1 deletions
|
@ -831,9 +831,10 @@ class ReaderViewModel(
|
||||||
* will run in a background thread and errors are ignored.
|
* will run in a background thread and errors are ignored.
|
||||||
*/
|
*/
|
||||||
private fun updateTrackChapterRead(readerChapter: ReaderChapter) {
|
private fun updateTrackChapterRead(readerChapter: ReaderChapter) {
|
||||||
|
if (basePreferences.incognitoMode().get()) return
|
||||||
if (!trackPreferences.autoUpdateTrack().get()) return
|
if (!trackPreferences.autoUpdateTrack().get()) return
|
||||||
val manga = manga ?: return
|
|
||||||
|
|
||||||
|
val manga = manga ?: return
|
||||||
val chapterRead = readerChapter.chapter.chapter_number.toDouble()
|
val chapterRead = readerChapter.chapter.chapter_number.toDouble()
|
||||||
|
|
||||||
val trackManager = Injekt.get<TrackManager>()
|
val trackManager = Injekt.get<TrackManager>()
|
||||||
|
|
Reference in a new issue