summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-07 16:29:59 +0200
committerGitHub <noreply@github.com>2022-07-07 16:29:59 +0200
commit664d8cd8ab0f03073a9e98a6e048569c75988d3b (patch)
treeca72ade1b906db15f730e0e5bb3f346b57306efa /editor
parent7fd036800cd1a04aab1a6b949871c744723aebeb (diff)
parentba5049402a3bde4a370d6137be02f8291fba3c70 (diff)
Merge pull request #62816 from akien-mga/feature-list-comma-fix
Diffstat (limited to 'editor')
-rw-r--r--editor/project_export.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/editor/project_export.cpp b/editor/project_export.cpp
index 030337a4bc..ac32027219 100644
--- a/editor/project_export.cpp
+++ b/editor/project_export.cpp
@@ -366,16 +366,17 @@ void ProjectExportDialog::_update_feature_list() {
}
custom_feature_display->clear();
+ String text;
bool first = true;
for (const String &E : fset) {
- String f = E;
if (!first) {
- f += ", ";
+ text += ", ";
} else {
first = false;
}
- custom_feature_display->add_text(f);
+ text += E;
}
+ custom_feature_display->add_text(text);
}
void ProjectExportDialog::_custom_features_changed(const String &p_text) {