hide Reverse threshold when not editable (#10161)

* make **`Reverse threshold`** inactive when **`Reverse only internal perimeters`**  is activated

* Update ConfigManipulation.cpp

* 100%% => 100%

Also fixed a typo along the way.
This commit is contained in:
discip 2025-07-18 08:06:48 +02:00 committed by GitHub
parent 41659bcfda
commit 46af00aa01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -11727,7 +11727,7 @@ msgstr ""
#, possible-c-format, possible-boost-format
msgid ""
"Detect the overhang percentage relative to line width and use different "
"speed to print. For 100%% overhang, bridge speed is used."
"speed to print. For 100% overhang, bridge speed is used."
msgstr ""
msgid "Filament to print walls"

View file

@ -824,9 +824,7 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
bool has_overhang_reverse = config->opt_bool("overhang_reverse");
bool force_wall_direction = config->opt_enum<WallDirection>("wall_direction") != WallDirection::Auto;
bool allow_overhang_reverse = !has_spiral_vase && !force_wall_direction;
toggle_field("overhang_reverse", allow_overhang_reverse);
toggle_field("overhang_reverse_threshold", has_detect_overhang_wall);
toggle_line("overhang_reverse_threshold", allow_overhang_reverse && has_overhang_reverse);
toggle_line("overhang_reverse", allow_overhang_reverse);
toggle_line("overhang_reverse_internal_only", allow_overhang_reverse && has_overhang_reverse);
bool has_overhang_reverse_internal_only = config->opt_bool("overhang_reverse_internal_only");
if (has_overhang_reverse_internal_only){
@ -834,6 +832,7 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
new_conf.set_key_value("overhang_reverse_threshold", new ConfigOptionFloatOrPercent(0,true));
apply(config, &new_conf);
}
toggle_line("overhang_reverse_threshold", has_detect_overhang_wall && allow_overhang_reverse && has_overhang_reverse && !has_overhang_reverse_internal_only);
toggle_line("timelapse_type", is_BBL_Printer);