Fix color toning layers being hidden

Request resizing of tool widgets after being attached to the tool panel.
This commit is contained in:
Lawrence Lee 2023-09-17 15:27:19 -07:00
parent f93c3ddf94
commit a35b320f1a
No known key found for this signature in database
GPG Key ID: 048FF2B76A63895F

View File

@ -856,10 +856,15 @@ ToolPanelCoordinator::updateToolPanel(
}
FoldableToolPanel *tool_panel =
getFoldableToolPanel(*new_tool_trees_iter);
if (tool_panel->getParent()) {
const bool reparent = tool_panel->getParent();
if (reparent) {
tool_panel->getParent()->remove(*tool_panel->getExpander());
}
addPanel(panelBox, tool_panel, level);
if (!reparent) {
// If attaching for the first time, update the widget sizes.
tool_panel->getExpander()->check_resize();
}
}
// Update the child tools.