Fix old download label not displayed when renaming
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user