diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/DownloadsScreen.kt b/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/DownloadsScreen.kt index dbadb9421..2ab5e216e 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/DownloadsScreen.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/ui/screen/DownloadsScreen.kt @@ -277,7 +277,7 @@ fun DownloadsScreen(navigator: DestinationsNavigator) { IconButton( onClick = { coroutineScope.launch { - val new = dialogState.awaitInputText(title = renameLabel, hint = labelsStr) { text -> + val new = dialogState.awaitInputText(initial = item, title = renameLabel, hint = labelsStr) { text -> when { text.isBlank() -> labelEmpty text == defaultName -> defaultInvalid