diff --git a/apps/multiplatform/common/src/commonMain/resources/MR/base/strings.xml b/apps/multiplatform/common/src/commonMain/resources/MR/base/strings.xml
index 64dc82f5b2..4d6395bc10 100644
--- a/apps/multiplatform/common/src/commonMain/resources/MR/base/strings.xml
+++ b/apps/multiplatform/common/src/commonMain/resources/MR/base/strings.xml
@@ -484,7 +484,6 @@
Temporary file error
File already exists
What would you like to do?
- Save as %s
Overwrite file
diff --git a/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/platform/Files.desktop.kt b/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/platform/Files.desktop.kt
index c36c79525d..6dc1692245 100644
--- a/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/platform/Files.desktop.kt
+++ b/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/platform/Files.desktop.kt
@@ -93,7 +93,6 @@ actual class FileChooserLauncher actual constructor() {
}
private fun showSaveRenameFileAlert(file: File, onResult: (URI?) -> Unit) {
- val newFileName = uniqueCombine(file.name, file.parentFile.absoluteFile)
AlertManager.shared.showAlertDialogButtonsColumn(
title = generalGetString(MR.strings.file_already_exists),
text = generalGetString(MR.strings.what_would_you_like_to_do_with_file),
@@ -107,9 +106,9 @@ private fun showSaveRenameFileAlert(file: File, onResult: (URI?) -> Unit) {
}
SectionItemView({
AlertManager.shared.hideAlert()
- onResult(File(file.parentFile, newFileName).toURI())
+ onResult(null)
}) {
- Text(generalGetString(MR.strings.save_file_as).format(newFileName), Modifier.fillMaxWidth(), textAlign = TextAlign.Center, color = MaterialTheme.colors.primary)
+ Text(generalGetString(MR.strings.cancel_verb), Modifier.fillMaxWidth(), textAlign = TextAlign.Center, color = MaterialTheme.colors.primary)
}
}
},