diff options
author | volzhs <volzhs@gmail.com> | 2017-02-08 14:18:48 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2017-02-08 23:51:13 +0900 |
commit | 79e8616fbb7f089d2e3033e875eeb6d396ce3e3d (patch) | |
tree | c190ff06bd4444eb1010c9da3114fefa846e36af /tools/editor/script_create_dialog.cpp | |
parent | 6bfaa0f12c65947ab0f124ec4c75345bd1332b77 (diff) |
Save and restore debug options
Diffstat (limited to 'tools/editor/script_create_dialog.cpp')
-rw-r--r-- | tools/editor/script_create_dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/script_create_dialog.cpp b/tools/editor/script_create_dialog.cpp index da01cdefe5..496d8670eb 100644 --- a/tools/editor/script_create_dialog.cpp +++ b/tools/editor/script_create_dialog.cpp @@ -128,7 +128,7 @@ void ScriptCreateDialog::_create_new() { Ref<Script> scr = ScriptServer::get_language( language_menu->get_selected() )->get_template(cname,parent_name->get_text()); String selected_language = language_menu->get_item_text(language_menu->get_selected()); - editor_settings->set_last_selected_language(selected_language); + editor_settings->set_project_metadata("script_setup", "last_selected_language", selected_language); if (cname!="") scr->set_name(cname); @@ -380,7 +380,7 @@ ScriptCreateDialog::ScriptCreateDialog() { } editor_settings = EditorSettings::get_singleton(); - String last_selected_language = editor_settings->get_last_selected_language(); + String last_selected_language = editor_settings->get_project_metadata("script_setup", "last_selected_language", ""); if (last_selected_language != "") for (int i = 0; i < language_menu->get_item_count(); i++) if (language_menu->get_item_text(i) == last_selected_language) |