Skip to content

Commit

Permalink
Merge pull request #75194 from ator-dev/download-source-fix
Browse files Browse the repository at this point in the history
Fix "Download Project Source" for Web Editor
  • Loading branch information
YuriSizov authored Mar 22, 2023
2 parents ce90d77 + dfb405b commit 0291fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/web/api/web_tools_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0291fcd

Please sign in to comment.