diff options
author | YuSanka <yusanka@gmail.com> | 2018-06-28 13:40:27 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2018-06-28 13:40:27 +0300 |
commit | 5605835ba9d4a48099401351843143f6088b72d2 (patch) | |
tree | 1ae9b7bc7459c47e2997676aa0cb476bf2dc1615 /xs/src/slic3r/GUI/Tab.cpp | |
parent | f9b85b67009ae7b7e65154e9e0485847110b4858 (diff) |
Use silent_mode only with MK3 printer
Diffstat (limited to 'xs/src/slic3r/GUI/Tab.cpp')
-rw-r--r-- | xs/src/slic3r/GUI/Tab.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xs/src/slic3r/GUI/Tab.cpp b/xs/src/slic3r/GUI/Tab.cpp index cf1b84639..21fde64f2 100644 --- a/xs/src/slic3r/GUI/Tab.cpp +++ b/xs/src/slic3r/GUI/Tab.cpp @@ -1921,8 +1921,12 @@ void TabPrinter::update(){ get_field("single_extruder_multi_material")->toggle(have_multiple_extruders); bool is_marlin_flavor = m_config->option<ConfigOptionEnum<GCodeFlavor>>("gcode_flavor")->value == gcfMarlin; - get_field("silent_mode")->toggle(is_marlin_flavor); - if (m_use_silent_mode != m_config->opt_bool("silent_mode")) { + + const std::string &printer_model = m_config->opt_string("printer_model"); + bool can_use_silent_mode = printer_model.empty() ? false : printer_model == "MK3"; // "true" only for MK3 printers + + get_field("silent_mode")->toggle(can_use_silent_mode && is_marlin_flavor); + if (can_use_silent_mode && m_use_silent_mode != m_config->opt_bool("silent_mode")) { m_rebuild_kinematics_page = true; m_use_silent_mode = m_config->opt_bool("silent_mode"); } |