diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-10 18:20:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 18:20:34 +0200 |
commit | cc3ed63af68ea9262bf8015d34aa6dd6327112e8 (patch) | |
tree | 6e0e29c93c88bc68092a7fa6e29b495e5208c45a /editor | |
parent | 0841f72c380a285802f52f6f28240345c97a80d7 (diff) | |
parent | b1ea83451ab6459e7ceb59ff0ecffdceb314963a (diff) |
Merge pull request #60923 from aaronfranke/fix-pm-features
Diffstat (limited to 'editor')
-rw-r--r-- | editor/project_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 9c745e6a41..565bf94708 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -1401,7 +1401,7 @@ void ProjectList::create_project_item_control(int p_index) { title->set_clip_text(true); title_hb->add_child(title); - String unsupported_features_str = Variant(item.unsupported_features).operator String().trim_prefix("[").trim_suffix("]"); + String unsupported_features_str = String(", ").join(item.unsupported_features); int length = unsupported_features_str.length(); if (length > 0) { Label *unsupported_label = memnew(Label(unsupported_features_str)); @@ -2207,7 +2207,7 @@ void ProjectManager::_open_selected_projects_ask() { } } if (!unsupported_features.is_empty()) { - String unsupported_features_str = Variant(unsupported_features).operator String().trim_prefix("[").trim_suffix("]"); + String unsupported_features_str = String(", ").join(unsupported_features); warning_message += vformat(TTR("Warning: This project uses the following features not supported by this build of Godot:\n\n%s\n\n"), unsupported_features_str); } warning_message += TTR("Open anyway? Project will be modified."); |