You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
String: Add contains().
This commit is contained in:
@@ -462,7 +462,7 @@ void EditorFeatureProfileManager::_erase_selected_profile() {
|
||||
|
||||
void EditorFeatureProfileManager::_create_new_profile() {
|
||||
String name = new_profile_name->get_text().strip_edges();
|
||||
if (!name.is_valid_filename() || name.find(".") != -1) {
|
||||
if (!name.is_valid_filename() || name.contains(".")) {
|
||||
EditorNode::get_singleton()->show_warning(TTR("Profile must be a valid filename and must not contain '.'"));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user