mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
workaround fix for flicking top bars
This commit is contained in:
@@ -7470,7 +7470,7 @@ void GLCanvas3D::_check_and_update_toolbar_icon_scale()
|
|||||||
#if ENABLE_RETINA_GL
|
#if ENABLE_RETINA_GL
|
||||||
new_scale /= m_retina_helper->get_scale_factor();
|
new_scale /= m_retina_helper->get_scale_factor();
|
||||||
#endif
|
#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);
|
wxGetApp().set_auto_toolbar_icon_scale(new_scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user