Merge pull request #6854 from Lawrence37/color-toning-layers-fix

Fix hidden layers in the Color Toning tool
This commit is contained in:
Lawrence37
2023-10-10 21:05:33 -07:00
committed by GitHub

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.