mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 07:56:24 -06:00
toggle visibility of ironing_pattern on selection of ironing type (#2321)
* toggle visibility of ironing_pattern on selection of ironing type * add a tooltip to ironing_pattern
This commit is contained in:
parent
cf8052cbfd
commit
709504a2d1
2 changed files with 2 additions and 1 deletions
|
@ -2335,6 +2335,7 @@ def = this->add("filament_loading_speed", coFloats);
|
||||||
|
|
||||||
def = this->add("ironing_pattern", coEnum);
|
def = this->add("ironing_pattern", coEnum);
|
||||||
def->label = L("Ironing Pattern");
|
def->label = L("Ironing Pattern");
|
||||||
|
def->tooltip = L("The pattern that will be used when ironing");
|
||||||
def->category = L("Quality");
|
def->category = L("Quality");
|
||||||
def->enum_keys_map = &ConfigOptionEnum<InfillPattern>::get_enum_values();
|
def->enum_keys_map = &ConfigOptionEnum<InfillPattern>::get_enum_values();
|
||||||
def->enum_values.push_back("concentric");
|
def->enum_values.push_back("concentric");
|
||||||
|
|
|
@ -654,7 +654,7 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
|
||||||
toggle_field(el, have_support_material && !(support_is_normal_tree && !have_raft));
|
toggle_field(el, have_support_material && !(support_is_normal_tree && !have_raft));
|
||||||
|
|
||||||
bool has_ironing = (config->opt_enum<IroningType>("ironing_type") != IroningType::NoIroning);
|
bool has_ironing = (config->opt_enum<IroningType>("ironing_type") != IroningType::NoIroning);
|
||||||
for (auto el : { "ironing_flow", "ironing_spacing", "ironing_speed", "ironing_angle" })
|
for (auto el : { "ironing_pattern", "ironing_flow", "ironing_spacing", "ironing_speed", "ironing_angle" })
|
||||||
toggle_line(el, has_ironing);
|
toggle_line(el, has_ironing);
|
||||||
|
|
||||||
// bool have_sequential_printing = (config->opt_enum<PrintSequence>("print_sequence") == PrintSequence::ByObject);
|
// bool have_sequential_printing = (config->opt_enum<PrintSequence>("print_sequence") == PrintSequence::ByObject);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue