Browse Source

Fix display of unsupported project features in the project manager

Aaron Franke 3 years ago
parent
commit
b1ea83451a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      editor/project_manager.cpp

+ 2 - 2
editor/project_manager.cpp

@@ -1401,7 +1401,7 @@ void ProjectList::create_project_item_control(int p_index) {
 		title->set_clip_text(true);
 		title->set_clip_text(true);
 		title_hb->add_child(title);
 		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();
 		int length = unsupported_features_str.length();
 		if (length > 0) {
 		if (length > 0) {
 			Label *unsupported_label = memnew(Label(unsupported_features_str));
 			Label *unsupported_label = memnew(Label(unsupported_features_str));
@@ -2207,7 +2207,7 @@ void ProjectManager::_open_selected_projects_ask() {
 			}
 			}
 		}
 		}
 		if (!unsupported_features.is_empty()) {
 		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 += 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.");
 		warning_message += TTR("Open anyway? Project will be modified.");