You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
String: Add contains().
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user