mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Fix reader settings sheet's mode section not updated (#8857)
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user