You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +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:
@@ -239,8 +239,8 @@ MenuButton::MenuButton(const String &p_text) :
|
||||
popup = memnew(PopupMenu);
|
||||
popup->hide();
|
||||
add_child(popup, false, INTERNAL_MODE_FRONT);
|
||||
popup->connect("about_to_popup", callable_mp(this, &MenuButton::_popup_visibility_changed), varray(true));
|
||||
popup->connect("popup_hide", callable_mp(this, &MenuButton::_popup_visibility_changed), varray(false));
|
||||
popup->connect("about_to_popup", callable_mp(this, &MenuButton::_popup_visibility_changed).bind(true));
|
||||
popup->connect("popup_hide", callable_mp(this, &MenuButton::_popup_visibility_changed).bind(false));
|
||||
}
|
||||
|
||||
MenuButton::~MenuButton() {
|
||||
|
||||
Reference in New Issue
Block a user