Save opened scenes when necessary
(cherry picked from commit 331f922359
)
This commit is contained in:
parent
c7e5b371be
commit
a758b329d0
|
@ -1292,6 +1292,7 @@ void EditorNode::_dialog_action(String p_file) {
|
|||
_save_default_environment();
|
||||
_save_scene_with_preview(p_file, scene_idx);
|
||||
_add_to_recent_scenes(p_file);
|
||||
save_layout();
|
||||
|
||||
if (scene_idx != -1)
|
||||
_discard_changes();
|
||||
|
@ -3999,6 +4000,7 @@ void EditorNode::_load_open_scenes_from_config(Ref<ConfigFile> p_layout, const S
|
|||
for (int i = 0; i < scenes.size(); i++) {
|
||||
load_scene(scenes[i]);
|
||||
}
|
||||
save_layout();
|
||||
|
||||
restoring_scenes = false;
|
||||
}
|
||||
|
|
|
@ -988,6 +988,7 @@ void FileSystemDock::_try_move_item(const FileOrFolder &p_item, const String &p_
|
|||
for (int j = 0; j < ed->get_edited_scene_count(); j++) {
|
||||
if (ed->get_scene_path(j) == file_changed_paths[i]) {
|
||||
ed->get_edited_scene_root(j)->set_filename(new_item_path);
|
||||
editor->save_layout();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue