mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
Fixed a checking of the description lines existence before setting new value for them
This commit is contained in:
parent
81878a6f79
commit
034ca8ef57
1 changed files with 2 additions and 2 deletions
|
@ -2803,7 +2803,7 @@ void TabPrinter::toggle_options()
|
||||||
toggle_option("retract_restart_extra_toolchange", have_multiple_extruders && toolchange_retraction, i);
|
toggle_option("retract_restart_extra_toolchange", have_multiple_extruders && toolchange_retraction, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_active_page->title() == "Machine limits") {
|
if (m_active_page->title() == "Machine limits" && m_machine_limits_description_line) {
|
||||||
assert(m_config->option<ConfigOptionEnum<GCodeFlavor>>("gcode_flavor")->value == gcfMarlin);
|
assert(m_config->option<ConfigOptionEnum<GCodeFlavor>>("gcode_flavor")->value == gcfMarlin);
|
||||||
const auto *machine_limits_usage = m_config->option<ConfigOptionEnum<MachineLimitsUsage>>("machine_limits_usage");
|
const auto *machine_limits_usage = m_config->option<ConfigOptionEnum<MachineLimitsUsage>>("machine_limits_usage");
|
||||||
bool enabled = machine_limits_usage->value != MachineLimitsUsage::Ignore;
|
bool enabled = machine_limits_usage->value != MachineLimitsUsage::Ignore;
|
||||||
|
@ -3269,7 +3269,7 @@ void Tab::clear_pages()
|
||||||
|
|
||||||
void Tab::update_description_lines()
|
void Tab::update_description_lines()
|
||||||
{
|
{
|
||||||
if (m_active_page && m_active_page->title() == "Dependencies")
|
if (m_active_page && m_active_page->title() == "Dependencies" && m_parent_preset_description_line)
|
||||||
update_preset_description_line();
|
update_preset_description_line();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue