Fix old download label not displayed when renaming

This commit is contained in:
FooIbar committed 2023-12-22 14:53:45 +08:00
1 parent eeed56b211
commit 69252ae8a4
1 file changed
+1 -1
@@ -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