You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Update deferred calls to use Callables
This commit is contained in:
@@ -474,7 +474,7 @@ void CreateDialog::_notification(int p_what) {
|
||||
|
||||
case NOTIFICATION_VISIBILITY_CHANGED: {
|
||||
if (is_visible()) {
|
||||
search_box->call_deferred(SNAME("grab_focus")); // still not visible
|
||||
callable_mp((Control *)search_box, &Control::grab_focus).call_deferred(); // Still not visible.
|
||||
search_box->select_all();
|
||||
} else {
|
||||
EditorSettings::get_singleton()->set_project_metadata("dialog_bounds", "create_new_node", Rect2(get_position(), get_size()));
|
||||
|
||||
Reference in New Issue
Block a user