mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-07 07:09:06 +08:00
Merge branch 'add_kinematics' of https://github.com/prusa3d/Slic3r into time_estimate
This commit is contained in:
commit
b6e55a521e
@ -1895,8 +1895,12 @@ void TabPrinter::update(){
|
|||||||
get_field("single_extruder_multi_material")->toggle(have_multiple_extruders);
|
get_field("single_extruder_multi_material")->toggle(have_multiple_extruders);
|
||||||
|
|
||||||
bool is_marlin_flavor = m_config->option<ConfigOptionEnum<GCodeFlavor>>("gcode_flavor")->value == gcfMarlin;
|
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_rebuild_kinematics_page = true;
|
||||||
m_use_silent_mode = m_config->opt_bool("silent_mode");
|
m_use_silent_mode = m_config->opt_bool("silent_mode");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user