MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _save_editor_layout

Method _save_editor_layout

editor/editor_node.cpp:5709–5725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5707}
5708
5709void EditorNode::_save_editor_layout() {
5710 if (!load_editor_layout_done) {
5711 return;
5712 }
5713 Ref<ConfigFile> config;
5714 config.instantiate();
5715 // Load and amend existing config if it exists.
5716 config->load(EditorPaths::get_singleton()->get_project_settings_dir().path_join("editor_layout.cfg"));
5717
5718 editor_dock_manager->save_docks_to_config(config, "docks");
5719 _save_open_scenes_to_config(config);
5720 _save_central_editor_layout_to_config(config);
5721 _save_window_settings_to_config(config, "EditorWindow");
5722 editor_data.get_plugin_window_layout(config);
5723
5724 config->save(EditorPaths::get_singleton()->get_project_settings_dir().path_join("editor_layout.cfg"));
5725}
5726
5727void EditorNode::_save_open_scenes_to_config(Ref<ConfigFile> p_layout) {
5728 PackedStringArray scenes;

Callers

nothing calls this directly

Calls 7

path_joinMethod · 0.80
save_docks_to_configMethod · 0.80
instantiateMethod · 0.45
loadMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected