Fix bug: we weren't able to pick a gradient from the Dynamics popup

This commit is contained in:
David Capello 2021-05-22 11:08:10 -03:00
parent a3f9143cbe
commit 9d336ef259

View File

@ -235,6 +235,13 @@ DynamicsPopup::DynamicsPopup(Delegate* delegate)
m_fromTo = tools::ColorFromTo::BgToFg;
updateFromToText();
});
m_ditheringSel->OpenListBox.connect(
[this]{
if (auto comboboxWindow = m_ditheringSel->getWindowWidget()) {
m_hotRegion |= gfx::Region(comboboxWindow->boundsOnScreen());
setHotRegion(m_hotRegion);
}
});
m_dynamics->gradientPlaceholder()->addChild(m_ditheringSel);
m_dynamics->pressurePlaceholder()->addChild(m_pressureThreshold = new ThresholdSlider);