mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 07:41:51 +01:00
Don't update trackers after reading a chapter if Incognito Mode is enabled
Closes #7228
This commit is contained in:
parent
fc4fd487f9
commit
9766399539
@ -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>()
|
||||||
|
Loading…
Reference in New Issue
Block a user