Merge pull request #40008 from DanielZTing/master

Make "Close and save changes?" actually save
This commit is contained in:
Rémi Verschelde 2020-07-01 15:46:34 +02:00 committed by GitHub
commit 2abe858e1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -538,7 +538,7 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save, bool p_history_back) {
ScriptEditorBase *current = Object::cast_to<ScriptEditorBase>(tab_container->get_child(selected));
if (current) {
if (p_save) {
apply_scripts();
_menu_option(FILE_SAVE);
}
Ref<Script> script = current->get_edited_resource();