mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-22 20:42:34 +01:00
Automatic Lint
This commit is contained in:
@@ -240,7 +240,6 @@ fun ReaderMenu(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LaunchedEffect(hasFocus) {
|
LaunchedEffect(hasFocus) {
|
||||||
if (!hasFocus) {
|
if (!hasFocus) {
|
||||||
focusRequester.requestFocus()
|
focusRequester.requestFocus()
|
||||||
@@ -472,7 +471,6 @@ fun ReaderLayout(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (continuous) {
|
if (continuous) {
|
||||||
ContinuousReader(
|
ContinuousReader(
|
||||||
modifier = readerModifier,
|
modifier = readerModifier,
|
||||||
|
|||||||
@@ -261,9 +261,9 @@ class ReaderMenuViewModel @Inject constructor(
|
|||||||
private suspend fun initChapters(
|
private suspend fun initChapters(
|
||||||
mangaId: Long,
|
mangaId: Long,
|
||||||
chapterIndex: Int,
|
chapterIndex: Int,
|
||||||
fromMenuButton: Boolean = true,
|
fromMenuButton: Boolean = true
|
||||||
) {
|
) {
|
||||||
//resetValues()
|
// resetValues()
|
||||||
val (chapter, pages) = coroutineScope {
|
val (chapter, pages) = coroutineScope {
|
||||||
val getCurrentChapter = async {
|
val getCurrentChapter = async {
|
||||||
val chapter = getReaderChapter(chapterIndex) ?: return@async null
|
val chapter = getReaderChapter(chapterIndex) ?: return@async null
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ actual class ReaderLauncher {
|
|||||||
onCloseRequest = ::exitApplication,
|
onCloseRequest = ::exitApplication,
|
||||||
title = "${BuildKonfig.NAME} - Reader",
|
title = "${BuildKonfig.NAME} - Reader",
|
||||||
icon = icon,
|
icon = icon,
|
||||||
state = windowState,
|
state = windowState
|
||||||
) {
|
) {
|
||||||
ReaderMenu(
|
ReaderMenu(
|
||||||
chapterIndex = chapterIndex,
|
chapterIndex = chapterIndex,
|
||||||
|
|||||||
Reference in New Issue
Block a user