mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-25 07:37:37 +08:00
Fixed a checking of the description lines existence before setting new value for them
This commit is contained in:
parent
81878a6f79
commit
034ca8ef57
@ -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…
x
Reference in New Issue
Block a user