Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Fix reader settings sheet's mode section not updated (#8857)

Cette révision appartient à :
stevenyomi 2023-01-08 04:13:08 +08:00 révisé par GitHub
Parent 7b026cec8d
révision 2a3c3d8d6a
Aucune clé n'a été trouvée pour cette signature dans la base de données
ID de la clé GPG: 4AEE18F83AFDEB23

Voir le fichier

@ -60,6 +60,7 @@ import eu.kanade.tachiyomi.util.storage.DiskUtil
import eu.kanade.tachiyomi.util.storage.cacheImageDir
import eu.kanade.tachiyomi.util.system.isOnline
import eu.kanade.tachiyomi.util.system.logcat
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.channels.Channel
@ -610,7 +611,7 @@ class ReaderViewModel(
*/
fun setMangaReadingMode(readingModeType: Int) {
val manga = manga ?: return
viewModelScope.launchIO {
runBlocking(Dispatchers.IO) {
setMangaViewerFlags.awaitSetMangaReadingMode(manga.id, readingModeType.toLong())
val currChapters = state.value.viewerChapters
if (currChapters != null) {