mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-04 18:08:44 +03:00
Optimized the enabling of parameters related to material properties
This commit is contained in:
@@ -2299,6 +2299,9 @@ void TabFilament::toggle_options()
|
|||||||
toggle_option("advance_pressure", pa);
|
toggle_option("advance_pressure", pa);
|
||||||
toggle_option("smooth_time", pa);
|
toggle_option("smooth_time", pa);
|
||||||
//Y7
|
//Y7
|
||||||
|
bool notQIDI = (m_config->opt_string("filament_vendor", true) != "QIDI");
|
||||||
|
if (notQIDI)
|
||||||
|
{
|
||||||
const auto og_it2 = std::find_if(page->m_optgroups.begin(), page->m_optgroups.end(), [](const ConfigOptionsGroupShp og) { return og->title == "Drying box"; });
|
const auto og_it2 = std::find_if(page->m_optgroups.begin(), page->m_optgroups.end(), [](const ConfigOptionsGroupShp og) { return og->title == "Drying box"; });
|
||||||
if (og_it2 != page->m_optgroups.end())
|
if (og_it2 != page->m_optgroups.end())
|
||||||
{
|
{
|
||||||
@@ -2310,6 +2313,32 @@ void TabFilament::toggle_options()
|
|||||||
update_line_with_near_label_widget(*og_it3, "filament_property_anneal_temperature");
|
update_line_with_near_label_widget(*og_it3, "filament_property_anneal_temperature");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (m_overrides_options["filament_property_drying_box"])
|
||||||
|
{
|
||||||
|
m_overrides_options["filament_property_drying_box"]->Enable(notQIDI);
|
||||||
|
}
|
||||||
|
if (m_overrides_options["filament_property_anneal_temperature"])
|
||||||
|
{
|
||||||
|
m_overrides_options["filament_property_anneal_temperature"]->Enable(notQIDI);
|
||||||
|
}
|
||||||
|
toggle_option("filament_property_drying_box", notQIDI);
|
||||||
|
toggle_option("filament_property_anneal_temperature", notQIDI);
|
||||||
|
}
|
||||||
|
|
||||||
|
toggle_option("filament_property_water_resistance", notQIDI);
|
||||||
|
toggle_option("filament_property_corrosion_resistance", notQIDI);
|
||||||
|
toggle_option("filament_property_creep_resistance", notQIDI);
|
||||||
|
toggle_option("filament_property_hdt_045", notQIDI);
|
||||||
|
toggle_option("filament_property_hdt_180", notQIDI);
|
||||||
|
toggle_option("filament_property_tensile_strength", notQIDI);
|
||||||
|
toggle_option("filament_property_tensile_modulus", notQIDI);
|
||||||
|
toggle_option("filament_property_elongation_at_break", notQIDI);
|
||||||
|
toggle_option("filament_property_flexural_strength", notQIDI);
|
||||||
|
toggle_option("filament_property_flexural_modulus", notQIDI);
|
||||||
|
toggle_option("filament_property_notch_impact_strength", notQIDI);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabFilament::update()
|
void TabFilament::update()
|
||||||
|
|||||||
Reference in New Issue
Block a user