Skip to content

Commit

Permalink
Merge pull request #76967 from martinboue/export-mode-subheading
Browse files Browse the repository at this point in the history
Fix include text when excluding resources to export
  • Loading branch information
akien-mga committed May 12, 2023
2 parents c90654b + 886e736 commit 6577852
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/export/project_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ void ProjectExportDialog::_edit_preset(int p_index) {

export_filter->select(current->get_export_filter());
include_filters->set_text(current->get_include_filter());
include_label->set_text(current->get_export_filter() == EditorExportPreset::EXCLUDE_SELECTED_RESOURCES ? TTR("Resources to exclude:") : TTR("Resources to export:"));
exclude_filters->set_text(current->get_exclude_filter());
server_strip_message->set_visible(current->get_export_filter() == EditorExportPreset::EXPORT_CUSTOMIZED);

Expand Down Expand Up @@ -702,6 +703,7 @@ void ProjectExportDialog::_export_type_changed(int p_which) {
if (filter_type == EditorExportPreset::EXPORT_CUSTOMIZED && current->get_customized_files_count() == 0) {
current->set_file_export_mode("res://", EditorExportPreset::MODE_FILE_STRIP);
}
include_label->set_text(current->get_export_filter() == EditorExportPreset::EXCLUDE_SELECTED_RESOURCES ? TTR("Resources to exclude:") : TTR("Resources to export:"));

updating = true;
_fill_resource_tree();
Expand Down

0 comments on commit 6577852

Please sign in to comment.