Fixed of the warnings.

+ Some small bug-fixing related to the system colors change on MacOS ("Set..." buttons didn't respect to the system color change)
This commit is contained in:
YuSanka 2021-07-19 15:46:50 +02:00
parent d3ddb1cfa8
commit 888a5e3084
7 changed files with 16 additions and 27 deletions

View file

@ -709,29 +709,12 @@ void TabPrinter::msw_rescale()
{
Tab::msw_rescale();
// rescale missed options_groups
const std::vector<PageShp>& pages = m_printer_technology == ptFFF ? m_pages_sla : m_pages_fff;
for (auto page : pages)
page->msw_rescale();
if (m_reset_to_filament_color)
m_reset_to_filament_color->msw_rescale();
Layout();
}
void TabPrinter::sys_color_changed()
{
Tab::sys_color_changed();
// update missed options_groups
const std::vector<PageShp>& pages = m_printer_technology == ptFFF ? m_pages_sla : m_pages_fff;
for (auto page : pages)
page->sys_color_changed();
Layout();
}
void TabSLAMaterial::init_options_list()
{
if (!m_options_list.empty())