Draft shield option is now an enum (Disabled/Limited/Enabled)

This commit is contained in:
Lukas Matena 2021-06-30 11:58:01 +02:00
parent 6eeedf2bc6
commit b466f18326
5 changed files with 34 additions and 15 deletions

View file

@ -276,7 +276,7 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig* config)
toggle_field(el, have_default_acceleration);
bool have_skirt = config->opt_int("skirts") > 0;
toggle_field("skirt_height", have_skirt && !config->opt_bool("draft_shield"));
toggle_field("skirt_height", have_skirt && config->opt_enum<DraftShield>("draft_shield") != dsEnabled);
for (auto el : { "skirt_distance", "draft_shield", "min_skirt_length" })
toggle_field(el, have_skirt);