mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Automatic Lint
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -50,7 +50,7 @@ actual class ReaderLauncher {
|
||||
onCloseRequest = ::exitApplication,
|
||||
title = "${BuildKonfig.NAME} - Reader",
|
||||
icon = icon,
|
||||
state = windowState,
|
||||
state = windowState
|
||||
) {
|
||||
ReaderMenu(
|
||||
chapterIndex = chapterIndex,
|
||||
|
||||
Reference in New Issue
Block a user