mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX: clean ams result when unchecking enable ams
Change-Id: I95a416f966d1aa81301dd8685f0909eeff8ad2c1 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
a798ed22b9
commit
5114a79e2c
1 changed files with 11 additions and 2 deletions
|
@ -2785,17 +2785,26 @@ 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 (ams_check->GetValue()) {
|
||||
do_ams_mapping(obj_);
|
||||
} else {
|
||||
m_ams_mapping_result.clear();
|
||||
sync_ams_mapping_result(m_ams_mapping_result);
|
||||
clean_ams_mapping = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!obj_->has_ams() || !ams_check->GetValue()) {
|
||||
clean_ams_mapping = true;
|
||||
}
|
||||
|
||||
if (clean_ams_mapping) {
|
||||
m_ams_mapping_result.clear();
|
||||
sync_ams_mapping_result(m_ams_mapping_result);
|
||||
}
|
||||
|
||||
// reading done
|
||||
if (wxGetApp().app_config && wxGetApp().app_config->get("internal_debug").empty()) {
|
||||
if (obj_->upgrade_force_upgrade) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue