mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-29 10:50:33 -07:00
ENH:auto switch use ams option
jira:[none] Change-Id: Ia1d5231284515226277b16d771342141e654a23d (cherry picked from commit 956f1b9a59c11bce0428c3162beac45a5272c919)
This commit is contained in:
parent
2bc9cb4441
commit
157bec00a1
4 changed files with 22 additions and 50 deletions
|
|
@ -2602,39 +2602,6 @@ void SyncAmsInfoDialog::update_show_status()
|
|||
}
|
||||
}
|
||||
|
||||
if (!obj_->is_support_ams_mapping()) {
|
||||
int exceed_index = -1;
|
||||
if (obj_->is_mapping_exceed_filament(m_ams_mapping_result, exceed_index)) {
|
||||
std::vector<wxString> params;
|
||||
params.push_back(wxString::Format("%02d", exceed_index + 1));
|
||||
show_status(PrintDialogStatus::PrintStatusNeedUpgradingAms, params);
|
||||
} else {
|
||||
if (obj_->is_valid_mapping_result(m_ams_mapping_result)) {
|
||||
if (has_timelapse_warning()) {
|
||||
show_status(PrintDialogStatus::PrintStatusTimelapseWarning);
|
||||
} else {
|
||||
show_status(PrintDialogStatus::PrintStatusAmsMappingByOrder);
|
||||
}
|
||||
|
||||
} else {
|
||||
int mismatch_index = -1;
|
||||
for (int i = 0; i < m_ams_mapping_result.size(); i++) {
|
||||
if (m_ams_mapping_result[i].mapping_result == MappingResult::MAPPING_RESULT_TYPE_MISMATCH) {
|
||||
mismatch_index = m_ams_mapping_result[i].id;
|
||||
break;
|
||||
}
|
||||
}
|
||||
std::vector<wxString> params;
|
||||
if (mismatch_index >= 0) {
|
||||
params.push_back(wxString::Format("%02d", mismatch_index + 1));
|
||||
params.push_back(wxString::Format("%02d", mismatch_index + 1));
|
||||
}
|
||||
show_status(PrintDialogStatus::PrintStatusAmsMappingU0Invalid, params);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_ams_mapping_res) {
|
||||
if (has_timelapse_warning()) {
|
||||
show_status(PrintDialogStatus::PrintStatusTimelapseWarning);
|
||||
|
|
@ -2963,7 +2930,7 @@ void SyncAmsInfoDialog::reset_and_sync_ams_list()
|
|||
m_mapping_popup.set_show_type(ShowType::LEFT_AND_RIGHT);//special
|
||||
}
|
||||
// m_mapping_popup.set_show_type(ShowType::RIGHT);
|
||||
if (obj_ && obj_->is_support_ams_mapping()) {
|
||||
if (obj_) {
|
||||
if (m_mapping_popup.IsShown())
|
||||
return;
|
||||
wxPoint pos = item->ClientToScreen(wxPoint(0, 0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue