mirror of
https://github.com/godotengine/godot.git
synced 2025-01-19 08:22:01 +00:00
Don't allow to export pck without preset
This commit is contained in:
parent
a1033aea51
commit
6f7ba78c53
@ -286,11 +286,13 @@ void ProjectExportDialog::_edit_preset(int p_index) {
|
||||
export_templates_error->hide();
|
||||
|
||||
export_button->set_disabled(true);
|
||||
get_ok()->set_disabled(true);
|
||||
|
||||
} else {
|
||||
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());
|
||||
@ -623,6 +625,7 @@ void ProjectExportDialog::_delete_preset_confirm() {
|
||||
int idx = presets->get_current();
|
||||
_edit_preset(-1);
|
||||
export_button->set_disabled(true);
|
||||
get_ok()->set_disabled(true);
|
||||
EditorExport::get_singleton()->remove_export_preset(idx);
|
||||
_update_presets();
|
||||
}
|
||||
@ -1249,6 +1252,7 @@ ProjectExportDialog::ProjectExportDialog() {
|
||||
export_button->connect("pressed", this, "_export_project");
|
||||
// Disable initially before we select a valid preset
|
||||
export_button->set_disabled(true);
|
||||
get_ok()->set_disabled(true);
|
||||
|
||||
export_all_dialog = memnew(ConfirmationDialog);
|
||||
add_child(export_all_dialog);
|
||||
|
Loading…
Reference in New Issue
Block a user