mirror of
https://github.com/mihonapp/mihon.git
synced 2025-01-15 20:53:11 +01:00
Spotless
This commit is contained in:
parent
1a00e76e63
commit
3fe7642aea
@ -38,5 +38,8 @@ class TrackPreferences(
|
|||||||
|
|
||||||
fun autoUpdateTrack() = preferenceStore.getBoolean("pref_auto_update_manga_sync_key", true)
|
fun autoUpdateTrack() = preferenceStore.getBoolean("pref_auto_update_manga_sync_key", true)
|
||||||
|
|
||||||
fun autoUpdateTrackOnMarkRead() = preferenceStore.getEnum("pref_auto_update_manga_on_mark_read", AutoTrackState.ALWAYS)
|
fun autoUpdateTrackOnMarkRead() = preferenceStore.getEnum(
|
||||||
|
"pref_auto_update_manga_on_mark_read",
|
||||||
|
AutoTrackState.ALWAYS,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
@ -736,7 +736,12 @@ class MangaScreenModel(
|
|||||||
chapters = chapters.toTypedArray(),
|
chapters = chapters.toTypedArray(),
|
||||||
)
|
)
|
||||||
|
|
||||||
if (!read || successState?.hasLoggedInTrackers == false || autoTrackState == AutoTrackState.NEVER) return@launchIO
|
if (!read ||
|
||||||
|
successState?.hasLoggedInTrackers == false ||
|
||||||
|
autoTrackState == AutoTrackState.NEVER
|
||||||
|
) {
|
||||||
|
return@launchIO
|
||||||
|
}
|
||||||
|
|
||||||
val tracks = getTracks.await(mangaId)
|
val tracks = getTracks.await(mangaId)
|
||||||
val maxChapterNumber = chapters.maxOf { it.chapterNumber }
|
val maxChapterNumber = chapters.maxOf { it.chapterNumber }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user