diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-03-22 11:34:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 11:34:44 +0100 |
commit | 0291fcd7b66bcb315a49c44de8031e5596de4216 (patch) | |
tree | 6e745d3796996303879a57da54e3bf8b864b3dbb /platform/web/api/web_tools_editor_plugin.cpp | |
parent | ce90d77a1857e9cee4b7571258d6e917bf4ba268 (diff) | |
parent | dfb405b702b61cb3a8656f53eb85016608621b57 (diff) | |
download | redot-engine-0291fcd7b66bcb315a49c44de8031e5596de4216.tar.gz |
Merge pull request #75194 from ator-dev/download-source-fix
Fix "Download Project Source" for Web Editor
Diffstat (limited to 'platform/web/api/web_tools_editor_plugin.cpp')
-rw-r--r-- | platform/web/api/web_tools_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/web/api/web_tools_editor_plugin.cpp b/platform/web/api/web_tools_editor_plugin.cpp index 146a48db81..213204ff33 100644 --- a/platform/web/api/web_tools_editor_plugin.cpp +++ b/platform/web/api/web_tools_editor_plugin.cpp @@ -75,7 +75,7 @@ void WebToolsEditorPlugin::_download_zip() { const String project_name_safe = project_name.to_lower().replace(" ", "_"); const String datetime_safe = Time::get_singleton()->get_datetime_string_from_system(false, true).replace(" ", "_"); - const String output_name = OS::get_singleton()->get_safe_dir_name(vformat("%s_%s.zip")); + const String output_name = OS::get_singleton()->get_safe_dir_name(vformat("%s_%s.zip", project_name_safe, datetime_safe)); const String output_path = String("/tmp").path_join(output_name); zipFile zip = zipOpen2(output_path.utf8().get_data(), APPEND_STATUS_CREATE, nullptr, &io); |