You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -307,7 +307,7 @@ void EditorPropertyFontMetaOverride::update_property() {
|
||||
Button *remove = memnew(Button);
|
||||
remove->set_icon(get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")));
|
||||
hbox->add_child(remove);
|
||||
remove->connect("pressed", callable_mp(this, &EditorPropertyFontMetaOverride::_remove), varray(remove, name));
|
||||
remove->connect("pressed", callable_mp(this, &EditorPropertyFontMetaOverride::_remove).bind(remove, name));
|
||||
|
||||
prop->update_property();
|
||||
}
|
||||
@@ -783,7 +783,7 @@ void EditorPropertyOTFeatures::update_property() {
|
||||
Button *remove = memnew(Button);
|
||||
remove->set_icon(get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")));
|
||||
hbox->add_child(remove);
|
||||
remove->connect("pressed", callable_mp(this, &EditorPropertyOTFeatures::_remove), varray(remove, name_tag));
|
||||
remove->connect("pressed", callable_mp(this, &EditorPropertyOTFeatures::_remove).bind(remove, name_tag));
|
||||
|
||||
prop->update_property();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user