Merge pull request #34721 from dankan1890/ext_fix

ScriptCreateDialog: Suggested language extension now matches the selected language.
This commit is contained in:
Rémi Verschelde 2020-01-01 11:32:12 +01:00 committed by GitHub
commit a4936e500f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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("");