mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-04 20:40:38 +08:00
workaround fix for flicking top bars
This commit is contained in:
parent
61952610df
commit
cbda70ae73
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user