Merge pull request #65021 from timothyqiu/lineedit-submitted

[3.x] Fix `SceneCreateDialog` signal connection
This commit is contained in:
Rémi Verschelde 2022-08-29 09:58:27 +02:00 committed by GitHub
commit b0ab7ac446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -270,7 +270,7 @@ SceneCreateDialog::SceneCreateDialog() {
hb->add_child(scene_name_edit);
scene_name_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
scene_name_edit->connect("text_changed", this, "update_dialog");
scene_name_edit->connect("text_submitted", this, "accept_create");
scene_name_edit->connect("text_entered", this, "accept_create");
List<String> extensions;
Ref<PackedScene> sd = memnew(PackedScene);
@ -293,7 +293,7 @@ SceneCreateDialog::SceneCreateDialog() {
root_name_edit->set_placeholder(TTR("Leave empty to use scene name"));
root_name_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
root_name_edit->connect("text_changed", this, "update_dialog");
root_name_edit->connect("text_submitted", this, "accept_create");
root_name_edit->connect("text_entered", this, "accept_create");
}
Control *spacing = memnew(Control);