| 5707 | } |
| 5708 | |
| 5709 | void 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 | |
| 5727 | void EditorNode::_save_open_scenes_to_config(Ref<ConfigFile> p_layout) { |
| 5728 | PackedStringArray scenes; |
nothing calls this directly
no test coverage detected