diff options
author | dankan1890 <mewuidev2@gmail.com> | 2020-01-01 01:09:50 +0100 |
---|---|---|
committer | dankan1890 <mewuidev2@gmail.com> | 2020-01-01 01:09:50 +0100 |
commit | 99efc9341936f5d83079e5722b7e84dd8007b63f (patch) | |
tree | 27244b07cd431774b33211d3cec324cab419d094 /editor | |
parent | 7fddf5eb7c6b6e58f891aaaa5b396f2b0cf616f8 (diff) |
ScriptCreateDialog: Suggested language extension now matches the selected language.
Fixes #34711
Diffstat (limited to 'editor')
-rw-r--r-- | editor/script_create_dialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index 08bf52ab57..9c9895bee9 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -109,6 +109,7 @@ void ScriptCreateDialog::config(const String &p_base_name, const String &p_base_ if (p_base_path != "") { initial_bp = p_base_path.get_basename(); file_path->set_text(initial_bp + "." + ScriptServer::get_language(language_menu->get_selected())->get_extension()); + current_language = language_menu->get_selected(); } else { initial_bp = ""; file_path->set_text(""); |