diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-07-01 15:46:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-01 15:46:34 +0200 |
| commit | 2abe858e1ccd202b7aee543f9846c1ccf7e51e2c (patch) | |
| tree | 70f21ad392cd7874d88b695adbdfbea364e4be89 | |
| parent | 9286772fafdfce0b301c8cb5fcc852dae7f170fa (diff) | |
| parent | d2a5b92e9be3e244ceb9a86b4ebf904e1db603fc (diff) | |
Merge pull request #40008 from DanielZTing/master
Make "Close and save changes?" actually save
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index fd415d40da..72d287c35c 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -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(); |