summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-02-17 17:03:41 +0100
committerkobewi <kobewi4e@gmail.com>2022-02-17 17:03:41 +0100
commitf315c9d0c65ec68223ede9fbeff29a385dee7eae (patch)
tree3bfdd9d0413720fc9825b6c5f71c263cb0dd95c9
parent444c556c1a318348822a8a771f53b4f4853713fe (diff)
Connect text_submitted of built-in script name
-rw-r--r--editor/script_create_dialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp
index c60c253a65..4a6c014942 100644
--- a/editor/script_create_dialog.cpp
+++ b/editor/script_create_dialog.cpp
@@ -1038,6 +1038,7 @@ ScriptCreateDialog::ScriptCreateDialog() {
internal_name = memnew(LineEdit);
internal_name->set_h_size_flags(Control::SIZE_EXPAND_FILL);
+ internal_name->connect("text_submitted", callable_mp(this, &ScriptCreateDialog::_path_submitted));
label = memnew(Label(TTR("Name:")));
gc->add_child(label);
gc->add_child(internal_name);