You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Add contains_char() for single-character 'contains' calls.
This commit is contained in:
@@ -523,7 +523,7 @@ void ConnectDialog::set_dst_node(Node *p_node) {
|
||||
|
||||
StringName ConnectDialog::get_dst_method_name() const {
|
||||
String txt = dst_method->get_text();
|
||||
if (txt.contains("(")) {
|
||||
if (txt.contains_char('(')) {
|
||||
txt = txt.left(txt.find_char('(')).strip_edges();
|
||||
}
|
||||
return txt;
|
||||
|
||||
Reference in New Issue
Block a user