Allow exporting PCK files without export templates installed

(cherry picked from commit 8d81ce9561748b9a231af70323ddffd288e189ab)
This commit is contained in:
Aaron Franke 2022-07-11 17:13:38 -05:00 committed by Relintai
parent 9dc3c9025e
commit a7d1445c9c

View File

@ -238,6 +238,7 @@ void ProjectExportDialog::_edit_preset(int p_index) {
export_path->show(); export_path->show();
duplicate_preset->set_disabled(false); duplicate_preset->set_disabled(false);
delete_preset->set_disabled(false); delete_preset->set_disabled(false);
get_ok()->set_disabled(false);
name->set_text(current->get_name()); name->set_text(current->get_name());
List<String> extension_list = current->get_platform()->get_binary_extensions(current); List<String> 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); export_button->set_disabled(true);
get_ok()->set_disabled(true);
} else { } else {
if (error != String()) { if (error != String()) {
Vector<String> items = error.split("\n", false); Vector<String> items = error.split("\n", false);
@ -303,7 +302,6 @@ void ProjectExportDialog::_edit_preset(int p_index) {
export_error->hide(); export_error->hide();
export_templates_error->hide(); export_templates_error->hide();
export_button->set_disabled(false); export_button->set_disabled(false);
get_ok()->set_disabled(false);
} }
custom_features->set_text(current->get_custom_features()); custom_features->set_text(current->get_custom_features());