diff options
author | Anilforextra <anilforextra@gmail.com> | 2022-02-03 21:48:38 +0545 |
---|---|---|
committer | Anilforextra <anilforextra@gmail.com> | 2022-02-04 01:28:02 +0545 |
commit | adbe948bda202209b55249198e1837324e703ddb (patch) | |
tree | a7f424318e1d944e0564edb6fc55e8eabf266bd0 /editor/project_settings_editor.cpp | |
parent | bf12719ccabcea9bf9b274f77511e02581678774 (diff) | |
download | redot-engine-adbe948bda202209b55249198e1837324e703ddb.tar.gz |
String: Add contains().
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r-- | editor/project_settings_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp index bcc597d595..22b866c1cb 100644 --- a/editor/project_settings_editor.cpp +++ b/editor/project_settings_editor.cpp @@ -202,7 +202,7 @@ void ProjectSettingsEditor::_select_type(Variant::Type p_type) { String ProjectSettingsEditor::_get_setting_name() const { String name = property_box->get_text().strip_edges(); - if (name.find("/") == -1) { + if (!name.contains("/")) { name = "global/" + name; } return name; |