FIX:Don't display other printing options except for enable AMS

Change-Id: I16a92c09518ee8e803ee50483b3b9e1f99658320
This commit is contained in:
hu.wang
2023-09-18 16:20:43 +08:00
committed by Lane.Wei
parent 68e2cb6ca2
commit fae1c17e44
2 changed files with 10 additions and 7 deletions

View File

@@ -3126,6 +3126,9 @@ void SelectMachineDialog::on_timer(wxTimerEvent &event)
if(!dev) return;
MachineObject* obj_ = dev->get_selected_machine();
if(!obj_) return;
update_ams_check(obj_);
update_select_layout(obj_);
if (!obj_
|| obj_->amsList.empty()
|| obj_->ams_exist_bits == 0
@@ -3295,7 +3298,7 @@ void SelectMachineDialog::update_show_status()
}
reset_timeout();
update_ams_check(obj_);
//update_ams_check(obj_);
if (!obj_->is_support_print_all && m_print_plate_idx == PLATE_ALL_IDX) {
show_status(PrintDialogStatus::PrintStatusNotSupportedPrintAll);
@@ -3731,7 +3734,7 @@ void SelectMachineDialog::set_default()
else if (m_print_type == PrintFromType::FROM_SDCARD_VIEW) {
set_default_from_sdcard();
}
Layout();
Fit();
}