Explorar o código

Merge pull request #75194 from ator-dev/download-source-fix

Fix "Download Project Source" for Web Editor
Yuri Sizov %!s(int64=2) %!d(string=hai) anos
pai
achega
0291fcd7b6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      platform/web/api/web_tools_editor_plugin.cpp

+ 1 - 1
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);