Fix color toning layers being hidden
Request resizing of tool widgets after being attached to the tool panel.
This commit is contained in:
parent
f93c3ddf94
commit
a35b320f1a
@ -856,10 +856,15 @@ ToolPanelCoordinator::updateToolPanel(
|
|||||||
}
|
}
|
||||||
FoldableToolPanel *tool_panel =
|
FoldableToolPanel *tool_panel =
|
||||||
getFoldableToolPanel(*new_tool_trees_iter);
|
getFoldableToolPanel(*new_tool_trees_iter);
|
||||||
if (tool_panel->getParent()) {
|
const bool reparent = tool_panel->getParent();
|
||||||
|
if (reparent) {
|
||||||
tool_panel->getParent()->remove(*tool_panel->getExpander());
|
tool_panel->getParent()->remove(*tool_panel->getExpander());
|
||||||
}
|
}
|
||||||
addPanel(panelBox, tool_panel, level);
|
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.
|
// Update the child tools.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user