Change when Magnet tool's non-linear preference is applied

This commit is contained in:
manongjohn 2023-10-03 01:56:11 -04:00
parent 3df6c2438f
commit f07d9d4573

View file

@ -150,9 +150,6 @@ public:
{ {
bind(TTool::Vectors); bind(TTool::Vectors);
if (Preferences::instance()->getBoolValue(magnetNonLinearSliderEnabled))
m_toolSize.setNonLinearSlider();
m_prop.bind(m_toolSize); m_prop.bind(m_toolSize);
} }
@ -446,6 +443,9 @@ lefrightButtonDown(p);
if (!m_firstTime) { if (!m_firstTime) {
m_firstTime = true; m_firstTime = true;
m_toolSize.setValue(MagnetSize); m_toolSize.setValue(MagnetSize);
if (Preferences::instance()->getBoolValue(magnetNonLinearSliderEnabled))
m_toolSize.setNonLinearSlider();
} }
// getApplication()->editImageOrSpline(); // getApplication()->editImageOrSpline();
} }