1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Web Editor: Fix callable binding for Download Zip menu item

Fixes #71702.
This commit is contained in:
Rémi Verschelde
2023-01-20 00:00:53 +01:00
parent 360b61084a
commit fd314209eb
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ WebToolsEditorPlugin::WebToolsEditorPlugin() {
add_tool_menu_item("Download Project Source", callable_mp(this, &WebToolsEditorPlugin::_download_zip)); add_tool_menu_item("Download Project Source", callable_mp(this, &WebToolsEditorPlugin::_download_zip));
} }
void WebToolsEditorPlugin::_download_zip(Variant p_v) { void WebToolsEditorPlugin::_download_zip() {
if (!Engine::get_singleton() || !Engine::get_singleton()->is_editor_hint()) { if (!Engine::get_singleton() || !Engine::get_singleton()->is_editor_hint()) {
ERR_PRINT("Downloading the project as a ZIP archive is only available in Editor mode."); ERR_PRINT("Downloading the project as a ZIP archive is only available in Editor mode.");
return; return;

View File

@@ -41,7 +41,7 @@ class WebToolsEditorPlugin : public EditorPlugin {
private: private:
void _zip_file(String p_path, String p_base_path, zipFile p_zip); void _zip_file(String p_path, String p_base_path, zipFile p_zip);
void _zip_recursive(String p_path, String p_base_path, zipFile p_zip); void _zip_recursive(String p_path, String p_base_path, zipFile p_zip);
void _download_zip(Variant p_v); void _download_zip();
public: public:
static void initialize(); static void initialize();