You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
String: Add contains().
This commit is contained in:
@@ -310,7 +310,7 @@ void ConnectDialog::set_dst_node(Node *p_node) {
|
||||
|
||||
StringName ConnectDialog::get_dst_method_name() const {
|
||||
String txt = dst_method->get_text();
|
||||
if (txt.find("(") != -1) {
|
||||
if (txt.contains("(")) {
|
||||
txt = txt.left(txt.find("(")).strip_edges();
|
||||
}
|
||||
return txt;
|
||||
|
||||
Reference in New Issue
Block a user