You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Remove Signal connect binds
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
This commit is contained in:
@@ -261,7 +261,7 @@ Button *AcceptDialog::add_button(const String &p_text, bool p_right, const Strin
|
||||
}
|
||||
|
||||
if (!p_action.is_empty()) {
|
||||
button->connect("pressed", callable_mp(this, &AcceptDialog::_custom_action), varray(p_action));
|
||||
button->connect("pressed", callable_mp(this, &AcceptDialog::_custom_action).bind(p_action));
|
||||
}
|
||||
|
||||
return button;
|
||||
|
||||
Reference in New Issue
Block a user