Skip to content

Commit cc7a951

Browse files
committed
Merge pull request #103266 from KoBeWi/l8ter_m8
Load docks layout after their position is initialized
2 parents 2f030f3 + 7aec67f commit cc7a951

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editor/editor_dock_manager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,10 +547,10 @@ void EditorDockManager::load_docks_from_config(Ref<ConfigFile> p_layout, const S
547547
continue;
548548
}
549549
Control *dock = dock_map[name];
550-
dock->call(SNAME("_load_layout_from_config"), p_layout, p_section);
551550

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

567568
if (closed_docks.has(name)) {
568569
_move_dock(dock, closed_dock_parent);

0 commit comments

Comments
 (0)