From a7d1445c9c4556de40f48629f87628c0548678c8 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Mon, 11 Jul 2022 17:13:38 -0500 Subject: [PATCH] Allow exporting PCK files without export templates installed (cherry picked from commit 8d81ce9561748b9a231af70323ddffd288e189ab) --- editor/project_export.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/editor/project_export.cpp b/editor/project_export.cpp index 92c75d48f..7d96a1d66 100644 --- a/editor/project_export.cpp +++ b/editor/project_export.cpp @@ -238,6 +238,7 @@ void ProjectExportDialog::_edit_preset(int p_index) { export_path->show(); duplicate_preset->set_disabled(false); delete_preset->set_disabled(false); + get_ok()->set_disabled(false); name->set_text(current->get_name()); List extension_list = current->get_platform()->get_binary_extensions(current); @@ -283,8 +284,6 @@ void ProjectExportDialog::_edit_preset(int p_index) { } export_button->set_disabled(true); - get_ok()->set_disabled(true); - } else { if (error != String()) { Vector items = error.split("\n", false); @@ -303,7 +302,6 @@ void ProjectExportDialog::_edit_preset(int p_index) { export_error->hide(); export_templates_error->hide(); export_button->set_disabled(false); - get_ok()->set_disabled(false); } custom_features->set_text(current->get_custom_features());