Minor tracking cleanups
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package eu.kanade.tachiyomi.ui.reader.model
|
||||
|
||||
import eu.kanade.domain.chapter.model.toDbChapter
|
||||
import eu.kanade.tachiyomi.data.database.models.Chapter
|
||||
import eu.kanade.tachiyomi.ui.reader.loader.PageLoader
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
@@ -23,6 +24,8 @@ data class ReaderChapter(val chapter: Chapter) {
|
||||
|
||||
private var references = 0
|
||||
|
||||
constructor(chapter: tachiyomi.domain.chapter.model.Chapter) : this(chapter.toDbChapter())
|
||||
|
||||
fun ref() {
|
||||
references++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user