Skip to content

Commit

Permalink
Load docks layout after their position is initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Feb 24, 2025
1 parent 39c201c commit 7aec67f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/editor_dock_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,10 @@ void EditorDockManager::load_docks_from_config(Ref<ConfigFile> p_layout, const S
continue;
}
Control *dock = dock_map[name];
dock->call(SNAME("_load_layout_from_config"), p_layout, p_section);

if (!all_docks[dock].enabled) {
// Don't open disabled docks.
dock->call(SNAME("_load_layout_from_config"), p_layout, p_section);
continue;
}
bool at_bottom = false;
Expand All @@ -563,6 +563,7 @@ void EditorDockManager::load_docks_from_config(Ref<ConfigFile> p_layout, const S
} else if (i >= 0) {
_move_dock(dock, dock_slot[i], 0);
}
dock->call(SNAME("_load_layout_from_config"), p_layout, p_section);

if (closed_docks.has(name)) {
_move_dock(dock, closed_dock_parent);
Expand Down

0 comments on commit 7aec67f

Please sign in to comment.