FIX: enhance for cali

1. Optimize the message for repeat names
2. Modify the recommended name
jira:none

Change-Id: Iebc5807208dcbe2086f690fda453a2f2abb032f7
(cherry picked from commit 4fe716a9c9268838929bdb8e08372fcd521d4fa2)
This commit is contained in:
zhimin.zeng
2024-11-16 14:35:25 +08:00
committed by Noisyfox
parent 37ff918ea9
commit dfe137200c
3 changed files with 116 additions and 19 deletions

View File

@@ -918,6 +918,9 @@ void AMSLib::render_generic_text(wxDC &dc)
if (m_info.material_name.empty()) {
show_k_value = false;
}
else if (m_obj && m_obj->is_multi_extruders() && m_info.cali_idx == -1) {
show_k_value = false;
}
else if (m_info.cali_idx == -1 || (m_obj && (CalibUtils::get_selected_calib_idx(m_obj->pa_calib_tab, m_info.cali_idx) == -1))) {
get_default_k_n_value(m_info.filament_id, m_info.k, m_info.n);
}