workaround fix for flicking top bars

This commit is contained in:
SoftFever 2024-08-04 20:06:02 +08:00
parent 61952610df
commit cbda70ae73

View file

@ -7470,7 +7470,7 @@ void GLCanvas3D::_check_and_update_toolbar_icon_scale()
#if ENABLE_RETINA_GL
new_scale /= m_retina_helper->get_scale_factor();
#endif
if (fabs(new_scale - scale) > 0.01) // scale is changed by 1% and more
if (fabs(new_scale - scale) > 0.05) // scale is changed by 5% and more
wxGetApp().set_auto_toolbar_icon_scale(new_scale);
}