fix: fix CSM-012

This commit is contained in:
2026-05-09 15:04:10 +02:00
parent 35b3818d58
commit 44b88056e3
5 changed files with 162 additions and 32 deletions

View File

@@ -2,9 +2,13 @@ defmodule BDS.Desktop.FilePicker do
@moduledoc false
def choose_file(prompt) when is_binary(prompt) do
case :os.type() do
{:unix, :darwin} -> choose_file_macos(prompt)
_other -> {:error, %{message: "File selection is only supported on macOS desktop"}}
if System.get_env("BDS_DESKTOP_AUTOMATION") == "1" do
:cancel
else
case :os.type() do
{:unix, :darwin} -> choose_file_macos(prompt)
_other -> {:error, %{message: "File selection is only supported on macOS desktop"}}
end
end
end