mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-05 16:51:07 -07:00
UI line toggling when option makes sense to be visible.
This commit is contained in:
parent
3469817551
commit
6f23869ee8
2 changed files with 5 additions and 5 deletions
|
|
@ -802,7 +802,7 @@ void PrintConfigDef::init_fff_params()
|
|||
def->set_default_value(new ConfigOptionBool{ true });
|
||||
|
||||
def = this->add("slowdown_for_curled_perimeters", coBool);
|
||||
def->label = L("Slow down at curled perimeters");
|
||||
def->label = L("Slow down for curled perimeters");
|
||||
def->category = L("Speed");
|
||||
def->tooltip = L("Enable this option to slow printing down in areas where potential curled perimeters may exist");
|
||||
def->mode = comAdvanced;
|
||||
|
|
|
|||
|
|
@ -674,9 +674,12 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
|
|||
bool has_overhang_speed = config->opt_bool("enable_overhang_speed");
|
||||
for (auto el :
|
||||
{"overhang_speed_classic", "overhang_1_4_speed",
|
||||
"overhang_2_4_speed", "overhang_3_4_speed", "overhang_4_4_speed"})
|
||||
"overhang_2_4_speed", "overhang_3_4_speed", "overhang_4_4_speed", "slowdown_for_curled_perimeters"})
|
||||
toggle_line(el, has_overhang_speed);
|
||||
|
||||
bool has_overhang_classic = config->opt_bool("overhang_speed_classic");
|
||||
toggle_line("slowdown_for_curled_perimeters",!has_overhang_classic);
|
||||
|
||||
toggle_line("flush_into_objects", !is_global_config);
|
||||
|
||||
bool has_fuzzy_skin = (config->opt_enum<FuzzySkinType>("fuzzy_skin") != FuzzySkinType::None);
|
||||
|
|
@ -692,9 +695,6 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
|
|||
// Orca
|
||||
auto is_role_based_wipe_speed = config->opt_bool("role_based_wipe_speed");
|
||||
toggle_field("wipe_speed",!is_role_based_wipe_speed);
|
||||
// Orca
|
||||
bool has_slowdown_for_curled_perimeters = config->opt_bool("slowdown_for_curled_perimeters");
|
||||
//toggle_field("slowdown_for_curled_perimeters",has_slowdown_for_curled_perimeters);
|
||||
|
||||
for (auto el : {"accel_to_decel_enable", "accel_to_decel_factor"})
|
||||
toggle_line(el, gcflavor == gcfKlipper);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue