You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Signals: Port connect calls to use callable_mp
Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
This commit is contained in:
@@ -245,7 +245,6 @@ void ProgressDialog::_cancel_pressed() {
|
||||
}
|
||||
|
||||
void ProgressDialog::_bind_methods() {
|
||||
ClassDB::bind_method("_cancel_pressed", &ProgressDialog::_cancel_pressed);
|
||||
}
|
||||
|
||||
ProgressDialog::ProgressDialog() {
|
||||
@@ -264,5 +263,5 @@ ProgressDialog::ProgressDialog() {
|
||||
cancel_hb->add_child(cancel);
|
||||
cancel->set_text(TTR("Cancel"));
|
||||
cancel_hb->add_spacer();
|
||||
cancel->connect_compat("pressed", this, "_cancel_pressed");
|
||||
cancel->connect("pressed", callable_mp(this, &ProgressDialog::_cancel_pressed));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user