You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Merge pull request #40008 from DanielZTing/master
Make "Close and save changes?" actually save
This commit is contained in:
@@ -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));
|
ScriptEditorBase *current = Object::cast_to<ScriptEditorBase>(tab_container->get_child(selected));
|
||||||
if (current) {
|
if (current) {
|
||||||
if (p_save) {
|
if (p_save) {
|
||||||
apply_scripts();
|
_menu_option(FILE_SAVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<Script> script = current->get_edited_resource();
|
Ref<Script> script = current->get_edited_resource();
|
||||||
|
|||||||
Reference in New Issue
Block a user