Fixed bug in field visibility & made it default to off

This commit is contained in:
igiannakas 2023-09-12 12:10:47 +01:00
parent 6f23869ee8
commit 03c644f4c4
2 changed files with 5 additions and 5 deletions

View file

@ -806,7 +806,7 @@ void PrintConfigDef::init_fff_params()
def->category = L("Speed"); def->category = L("Speed");
def->tooltip = L("Enable this option to slow printing down in areas where potential curled perimeters may exist"); def->tooltip = L("Enable this option to slow printing down in areas where potential curled perimeters may exist");
def->mode = comAdvanced; def->mode = comAdvanced;
def->set_default_value(new ConfigOptionBool{ true }); def->set_default_value(new ConfigOptionBool{ false });
def = this->add("overhang_1_4_speed", coFloatOrPercent); def = this->add("overhang_1_4_speed", coFloatOrPercent);
def->label = "(10%, 25%)"; def->label = "(10%, 25%)";

View file

@ -670,15 +670,15 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
bool have_avoid_crossing_perimeters = config->opt_bool("reduce_crossing_wall"); bool have_avoid_crossing_perimeters = config->opt_bool("reduce_crossing_wall");
toggle_line("max_travel_detour_distance", have_avoid_crossing_perimeters); toggle_line("max_travel_detour_distance", have_avoid_crossing_perimeters);
bool has_overhang_speed = config->opt_bool("enable_overhang_speed"); bool has_overhang_speed = config->opt_bool("enable_overhang_speed");
for (auto el : for (auto el :
{"overhang_speed_classic", "overhang_1_4_speed", {"overhang_speed_classic", "overhang_1_4_speed",
"overhang_2_4_speed", "overhang_3_4_speed", "overhang_4_4_speed", "slowdown_for_curled_perimeters"}) "overhang_2_4_speed", "overhang_3_4_speed", "overhang_4_4_speed"})
toggle_line(el, has_overhang_speed); toggle_line(el, has_overhang_speed);
bool has_overhang_classic = config->opt_bool("overhang_speed_classic"); bool has_overhang_speed_classic = config->opt_bool("overhang_speed_classic");
toggle_line("slowdown_for_curled_perimeters",!has_overhang_classic); toggle_line("slowdown_for_curled_perimeters",!has_overhang_speed_classic && has_overhang_speed);
toggle_line("flush_into_objects", !is_global_config); toggle_line("flush_into_objects", !is_global_config);