summaryrefslogtreecommitdiff
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-07 00:47:41 +0200
committerGitHub <noreply@github.com>2021-05-07 00:47:41 +0200
commit04e995dd5d864f04a89ce02d957a425bd5109810 (patch)
treeff3dc2b9109c21d850a700007c277b7e8132812c /editor/editor_node.cpp
parent3a5310ccb990633bbba1d17dbeb503d46faa8615 (diff)
parent902d468f5233f97f56771ce60159aabf2a78a113 (diff)
Merge pull request #48466 from EricEzaM/output-log-save-state
Made Editor Log buttons save their state, per project.
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 07e95e7b83..6390755656 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -4362,6 +4362,8 @@ void EditorNode::_save_docks() {
}
Ref<ConfigFile> config;
config.instance();
+ // Load and amend existing config if it exists.
+ config->load(EditorSettings::get_singleton()->get_project_settings_dir().plus_file("editor_layout.cfg"));
_save_docks_to_config(config, "docks");
_save_open_scenes_to_config(config, "EditorNode");