You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add contains_char() for single-character 'contains' calls.
This commit is contained in:
@@ -268,7 +268,7 @@ void ProjectSettingsEditor::shortcut_input(const Ref<InputEvent> &p_event) {
|
||||
|
||||
String ProjectSettingsEditor::_get_setting_name() const {
|
||||
String name = property_box->get_text().strip_edges();
|
||||
if (!name.begins_with("_") && !name.contains("/")) {
|
||||
if (!name.begins_with("_") && !name.contains_char('/')) {
|
||||
name = "global/" + name;
|
||||
}
|
||||
return name;
|
||||
|
||||
Reference in New Issue
Block a user