From bfea71342d9bf915fe0b5e293fcd4dc15df5c732 Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Fri, 13 Dec 2024 16:31:17 +0700 Subject: [PATCH] mac no alert --- .../kotlin/chat/simplex/common/platform/Files.desktop.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6dc1692245..ba2db0267a 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 @@ -84,7 +84,7 @@ actual class FileChooserLauncher actual constructor() { } if (res == null) { onResult(null) - } else if (!res.exists()) { + } else if (desktopPlatform.isMac() || !res.exists()) { // mac has an alert confirmation if the file exists onResult(res.toURI()) } else { showSaveRenameFileAlert(res, onResult)