1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Fix FileSystem dock won't show any file folders

This commit is contained in:
Hilderin
2024-05-27 16:40:20 -04:00
parent 5241d30bfa
commit 72856d633a
10 changed files with 358 additions and 214 deletions

View File

@@ -5103,6 +5103,8 @@ void EditorNode::save_editor_layout_delayed() {
}
void EditorNode::_load_editor_layout() {
EditorProgress ep("loading_editor_layout", TTR("Loading editor"), 5);
ep.step("Loading editor layout...", 0, true);
Ref<ConfigFile> config;
config.instantiate();
Error err = config->load(EditorPaths::get_singleton()->get_project_settings_dir().path_join("editor_layout.cfg"));
@@ -5124,11 +5126,19 @@ void EditorNode::_load_editor_layout() {
return;
}
ep.step("Loading docks...", 1, true);
editor_dock_manager->load_docks_from_config(config, "docks");
ep.step("Reopening scenes...", 2, true);
_load_open_scenes_from_config(config);
ep.step("Loading central editor layout...", 3, true);
_load_central_editor_layout_from_config(config);
ep.step("Loading plugin window layout...", 4, true);
editor_data.set_plugin_window_layout(config);
ep.step("Editor layout ready.", 5, true);
}
void EditorNode::_save_central_editor_layout_to_config(Ref<ConfigFile> p_config_file) {