Route dialog work directory picker through platform services

This commit is contained in:
2026-06-04 18:14:02 +02:00
parent 52cf7628da
commit b1acd5118b
11 changed files with 164 additions and 78 deletions

View File

@@ -432,6 +432,25 @@ public:
#endif
}
[[nodiscard]] bool supports_working_directory_picker() override
{
#if defined(__OSX__)
return true;
#else
return false;
#endif
}
[[nodiscard]] std::string format_working_directory_path(std::string_view path) override
{
#if defined(__OSX__)
char path_buffer[4096] = {};
if (realpath(std::string(path).c_str(), path_buffer))
return path_buffer;
#endif
return std::string(path);
}
[[nodiscard]] bool uses_prepared_file_writes() override
{
#if __IOS__ || __WEB__