From 639f2bc2f3b91ef86c221a7ce1851fe6f5fd1699 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 14 Mar 2018 15:38:54 +0100 Subject: [PATCH] Update m_initial_extruders_count after preset changing --- xs/src/slic3r/GUI/Tab.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xs/src/slic3r/GUI/Tab.cpp b/xs/src/slic3r/GUI/Tab.cpp index 212b451e4..09d346ce3 100644 --- a/xs/src/slic3r/GUI/Tab.cpp +++ b/xs/src/slic3r/GUI/Tab.cpp @@ -1430,10 +1430,11 @@ void Tab::load_current_preset() update_tab_ui(); on_presets_changed(); - if (name() == "print"){ + if (name() == "print") update_frequently_changed_parameters(); - update_changed_ui(); - } + if (m_name == "printer") + static_cast(this)->m_initial_extruders_count = static_cast(this)->m_extruders_count; + update_changed_ui(); }); }