Fix: Hiding the ironing_angle_fixed setting in the UI if the ironing is disabled (#11286)

* Fix: Hiding the `ironing_angle_fixed` setting in the UI if the ironing is disabled
This commit is contained in:
Valerii Bokhan 2025-11-06 16:53:57 +01:00 committed by GitHub
parent d82f88bee8
commit ead6f9d763
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -780,7 +780,7 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
toggle_field(el, have_support_material && !(support_is_normal_tree && !have_raft));
bool has_ironing = (config->opt_enum<IroningType>("ironing_type") != IroningType::NoIroning);
for (auto el : { "ironing_pattern", "ironing_flow", "ironing_spacing", "ironing_angle", "ironing_inset"})
for (auto el : { "ironing_pattern", "ironing_flow", "ironing_spacing", "ironing_angle", "ironing_inset", "ironing_angle_fixed" })
toggle_line(el, has_ironing);
toggle_line("ironing_speed", has_ironing || has_support_ironing);