From 253d75523579fa862b6a81da15c801fca4158d0f Mon Sep 17 00:00:00 2001 From: YuSanka Date: Mon, 29 Jul 2019 16:08:36 +0200 Subject: [PATCH] Fix for https://github.com/prusa3d/PrusaSlicer/commit/7b5c8b7e1661d90213e5b8590a0a9097673960f4 --- src/slic3r/GUI/Tab.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 7bdaa0f2e..eeb2317ea 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -1585,12 +1585,14 @@ void TabFilament::update_filament_overrides_page() for (const std::string& opt_key : opt_keys) { bool is_checked = opt_key=="filament_retract_length" ? true : have_retract_length; + m_overrides_options[opt_key]->Enable(is_checked); + + is_checked &= !m_config->option(opt_key)->is_nil(); + m_overrides_options[opt_key]->SetValue(is_checked); + Field* field = optgroup->get_fieldc(opt_key, extruder_idx); - if (field != nullptr) { - is_checked &= !m_config->option(opt_key)->is_nil(); - m_overrides_options[opt_key]->SetValue(is_checked); + if (field != nullptr) field->toggle(is_checked); - } } }