diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/reader/ReaderMenu.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/reader/ReaderMenu.kt index e544c598..ecb8d7d1 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/reader/ReaderMenu.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/reader/ReaderMenu.kt @@ -163,7 +163,7 @@ fun ReaderMenu( Key.Spacebar -> vm.navigate(Navigation.NEXT) else -> false } - } + } ) { Crossfade(state to chapter) { (state, chapter) -> if (state is ReaderChapter.State.Loaded && chapter != null) { @@ -240,7 +240,6 @@ fun ReaderMenu( } } - LaunchedEffect(hasFocus) { if (!hasFocus) { focusRequester.requestFocus() @@ -472,7 +471,6 @@ fun ReaderLayout( } } - if (continuous) { ContinuousReader( modifier = readerModifier, diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/reader/ReaderMenuViewModel.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/reader/ReaderMenuViewModel.kt index 10961e01..5051a942 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/reader/ReaderMenuViewModel.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/reader/ReaderMenuViewModel.kt @@ -261,9 +261,9 @@ class ReaderMenuViewModel @Inject constructor( private suspend fun initChapters( mangaId: Long, chapterIndex: Int, - fromMenuButton: Boolean = true, + fromMenuButton: Boolean = true ) { - //resetValues() + // resetValues() val (chapter, pages) = coroutineScope { val getCurrentChapter = async { val chapter = getReaderChapter(chapterIndex) ?: return@async null diff --git a/presentation/src/desktopMain/kotlin/ca/gosyer/jui/ui/reader/DesktopReaderMenu.kt b/presentation/src/desktopMain/kotlin/ca/gosyer/jui/ui/reader/DesktopReaderMenu.kt index 4f9d121f..dff03958 100644 --- a/presentation/src/desktopMain/kotlin/ca/gosyer/jui/ui/reader/DesktopReaderMenu.kt +++ b/presentation/src/desktopMain/kotlin/ca/gosyer/jui/ui/reader/DesktopReaderMenu.kt @@ -50,7 +50,7 @@ actual class ReaderLauncher { onCloseRequest = ::exitApplication, title = "${BuildKonfig.NAME} - Reader", icon = icon, - state = windowState, + state = windowState ) { ReaderMenu( chapterIndex = chapterIndex,