Use configured dynamics of active tool w/o opening dynamics popup (fix #4151)

This commit is contained in:
David Capello 2023-11-20 14:50:52 -03:00
parent cc0f8d0dc4
commit 8af4747635

View File

@ -1187,9 +1187,14 @@ public:
m_popup->setHotRegion(gfx::Region(m_popup->boundsOnScreen()));
}
const tools::DynamicsOptions& getDynamics() const {
if (m_popup && m_popup->isVisible())
const tools::DynamicsOptions& getDynamics() {
if (m_popup && m_popup->isVisible()) {
m_dynamics = m_popup->getDynamics();
}
else {
// Load dynamics just in case that the active tool has changed.
loadDynamicsPref();
}
return m_dynamics;
}