mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-15 01:22:07 +00:00
FIX:Fix the issue of extruder matching errors
jira:[for nozzle match] Change-Id: I6965500bfb7feef6d18d28bea8a53a3c477f5e36 (cherry picked from commit 7bcf4b6cc5bc38e723bfd8dcd495c60a55134490)
This commit is contained in:
@@ -3519,7 +3519,7 @@ void SelectMachineDialog::update_flow_cali_check(MachineObject* obj)
|
||||
|
||||
void SelectMachineDialog::update_ams_check(MachineObject* obj)
|
||||
{
|
||||
if (obj && obj->ams_support_use_ams && obj->has_ams()) {
|
||||
if (obj && obj->has_ams()) {
|
||||
select_use_ams->Show();
|
||||
if (obj->get_printer_ams_type() == "generic") {
|
||||
img_use_ams_tip->Show();
|
||||
@@ -3611,13 +3611,11 @@ void SelectMachineDialog::update_show_status()
|
||||
|
||||
// do ams mapping if no ams result
|
||||
bool clean_ams_mapping = false;
|
||||
if (obj_->has_ams() && m_ams_mapping_result.empty()) {
|
||||
if (obj_->ams_support_use_ams) {
|
||||
if (m_checkbox_list["use_ams"]->GetValue()) {
|
||||
do_ams_mapping(obj_);
|
||||
} else {
|
||||
clean_ams_mapping = true;
|
||||
}
|
||||
if (m_ams_mapping_result.empty()) {
|
||||
if (m_checkbox_list["use_ams"]->GetValue()) {
|
||||
do_ams_mapping(obj_);
|
||||
} else {
|
||||
clean_ams_mapping = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3685,20 +3683,17 @@ void SelectMachineDialog::update_show_status()
|
||||
return;
|
||||
}
|
||||
|
||||
if (obj_->ams_support_use_ams) {
|
||||
if (!m_checkbox_list["use_ams"]->GetValue()) {
|
||||
m_ams_mapping_result.clear();
|
||||
sync_ams_mapping_result(m_ams_mapping_result);
|
||||
if (!m_checkbox_list["use_ams"]->GetValue()) {
|
||||
m_ams_mapping_result.clear();
|
||||
sync_ams_mapping_result(m_ams_mapping_result);
|
||||
|
||||
if (has_timelapse_warning()) {
|
||||
show_status(PrintDialogStatus::PrintStatusTimelapseWarning);
|
||||
}
|
||||
else {
|
||||
show_status(PrintDialogStatus::PrintStatusDisableAms);
|
||||
}
|
||||
|
||||
return;
|
||||
if (has_timelapse_warning()) {
|
||||
show_status(PrintDialogStatus::PrintStatusTimelapseWarning);
|
||||
} else {
|
||||
show_status(PrintDialogStatus::PrintStatusDisableAms);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user